Re: 5.1RC3 with Gallery2
| From: | Ilia Alshanetsky | Date: | Wed, 19 Oct 2005 14:37:16 +0000 |
| Subject: | Re: 5.1RC3 with Gallery2 | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26190@lists.php.net to get a copy of this message | ||
Hi Alan,
Thanks for taking the time try out Gallery2 with 5.1. Can you try
dumping the values of the following variables:
$this->_reg_objects, $this->_reg_objects['g']
Also, are you using any opcode caches (APC, eAccelerator, etc...), if so
can you disable them and see if problem goes away?
Ilia
Alan Harder wrote:
> Hi-
> Apologies in advance for not having time to track down in any detail
> what is happening, but I thought I should still report this problem I
> hit using PHP 5.1RC3 with Gallery2 (current CVS). Note that I didn't
> encounter any problems with the Gallery2 installer, but got this error
> trying to display the application right after install.
>
> http://parity.menalto.com/~mindless/phpinfo.php
> http://parity.menalto.com/~mindless/g2/main.php
>
> The error is:
> Fatal error: Cannot use object of type GalleryTemplateAdapter as array
> in
> /..path../smarty/templates_c/%%404975595/%%55^55E^55E14245%%SystemLinks.tpl.php
> on line 14
>
> That line has:
> <?php echo $this->_reg_objects['g'][0]->url(array('params' =>
> $this->_tpl_vars['link']['params']), $this);?>
>
> I get very odd behavior with accessing variables here.. above that line
> I added:
> <?php $x = $this->_reg_objects['g'][0]; var_dump($x); ?>
> and it reported NULL. I changed it to:
> <?php $x = $this->_reg_objects['g'][0]; $z =
> $this->_reg_objects['g'][0]; var_dump($x); ?>
> and it printed the GalleryTemplateAdapter object... ??
>
> So, not much to go on here, but I hope reporting it may prompt
> further investigation..
>
> - Alan
>