Re: 5.1RC3 with Gallery2
| From: | Alan Harder | Date: | Wed, 19 Oct 2005 21:22:54 +0000 |
| Subject: | Re: 5.1RC3 with Gallery2 | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26196@lists.php.net to get a copy of this message | ||
Yeah, the erratic output from var_dump immediately made me think a php
accelerator was going awry, but bharat and phpinfo.php confirm there isn't
one in use (I think mmcache is installed on the server, but not used here).
Output from (lines 14-15):
<?php var_dump($this->_reg_objects); var_dump($this->_reg_objects['g']); ?>
<a href="<?php echo $this->_reg_objects['g'][0]->url(array('params' => $this->_tpl_vars['link']['params']), $this);?>
is:
array(1) {
["g"]=>
array(4) {
[0]=>
&object(GalleryTemplateAdapter)#16 (5) {
["_callCount"]=>
array(0) {
}
["_theme"]=>
object(MatrixTheme)#19 (8) {
["_requiredThemeApi"]=>
array(2) {
[0]=>
int(2)
[1]=>
int(1)
}
["_standardSettings"]=>
array(12) {
["rows"]=>
int(3)
["columns"]=>
int(3)
["showImageOwner"]=>
int(0)
["showAlbumOwner"]=>
int(1)
["albumFrame"]=>
string(0) ""
["itemFrame"]=>
string(0) ""
["photoFrame"]=>
string(0) ""
["colorpack"]=>
string(0) ""
["showMicroThumbs"]=>
int(0)
["sidebarBlocks"]=>
string(251) "a:4:{i:0;a:2:{i:0;s:18:"search.SearchBlock";i:1;a:1:{s:16:"showAdvancedLink";b:1;}}i:1;a:2:{i:0;s:14:"core.ItemLinks";i:1;a:1:{s:11:"useDropdown";b:0;}}i:2;a:2:{i:0;s:13:"core.PeerList";i:1;a:0:{}}i:3;a:2:{i:0;s:21:"imageblock.ImageBlock";i:1;a:0:{}}}"
["albumBlocks"]=>
string(58) "a:1:{i:0;a:2:{i:0;s:20:"comment.ViewComments";i:1;a:0:{}}}"
["photoBlocks"]=>
string(103) "a:2:{i:0;a:2:{i:0;s:13:"exif.ExifInfo";i:1;a:0:{}}i:1;a:2:{i:0;s:20:"comment.ViewComments";i:1;a:0:{}}}"
}
["_id"]=>
string(6) "matrix"
["_name"]=>
string(6) "Matrix"
["_description"]=>
string(31) "Standard Gallery2 look and feel"
["_version"]=>
string(5) "1.0.0"
["_requiredCoreApi"]=>
array(2) {
[0]=>
int(6)
[1]=>
int(5)
}
["_l10Domain"]=>
NULL
}
["_trailer"]=>
NULL
["_trailerCallbacks"]=>
array(0) {
}
["_progressBarStats"]=>
NULL
}
[1]=>
array(0) {
}
[2]=>
bool(true)
[3]=>
array(3) {
[0]=>
string(12) "addToTrailer"
[1]=>
string(12) "autoComplete"
[2]=>
string(9) "container"
}
}
}
array(4) {
[0]=>
&object(GalleryTemplateAdapter)#16 (5) {
["_callCount"]=>
array(0) {
}
["_theme"]=>
object(MatrixTheme)#19 (8) {
["_requiredThemeApi"]=>
array(2) {
[0]=>
int(2)
[1]=>
int(1)
}
["_standardSettings"]=>
array(12) {
["rows"]=>
int(3)
["columns"]=>
int(3)
["showImageOwner"]=>
int(0)
["showAlbumOwner"]=>
int(1)
["albumFrame"]=>
string(0) ""
["itemFrame"]=>
string(0) ""
["photoFrame"]=>
string(0) ""
["colorpack"]=>
string(0) ""
["showMicroThumbs"]=>
int(0)
["sidebarBlocks"]=>
string(251) "a:4:{i:0;a:2:{i:0;s:18:"search.SearchBlock";i:1;a:1:{s:16:"showAdvancedLink";b:1;}}i:1;a:2:{i:0;s:14:"core.ItemLinks";i:1;a:1:{s:11:"useDropdown";b:0;}}i:2;a:2:{i:0;s:13:"core.PeerList";i:1;a:0:{}}i:3;a:2:{i:0;s:21:"imageblock.ImageBlock";i:1;a:0:{}}}"
["albumBlocks"]=>
string(58) "a:1:{i:0;a:2:{i:0;s:20:"comment.ViewComments";i:1;a:0:{}}}"
["photoBlocks"]=>
string(103) "a:2:{i:0;a:2:{i:0;s:13:"exif.ExifInfo";i:1;a:0:{}}i:1;a:2:{i:0;s:20:"comment.ViewComments";i:1;a:0:{}}}"
}
["_id"]=>
string(6) "matrix"
["_name"]=>
string(6) "Matrix"
["_description"]=>
string(31) "Standard Gallery2 look and feel"
["_version"]=>
string(5) "1.0.0"
["_requiredCoreApi"]=>
array(2) {
[0]=>
int(6)
[1]=>
int(5)
}
["_l10Domain"]=>
NULL
}
["_trailer"]=>
NULL
["_trailerCallbacks"]=>
array(0) {
}
["_progressBarStats"]=>
NULL
}
[1]=>
array(0) {
}
[2]=>
bool(true)
[3]=>
array(3) {
[0]=>
string(12) "addToTrailer"
[1]=>
string(12) "autoComplete"
[2]=>
string(9) "container"
}
}
<a href="<br" /><b>Fatal error</b>: Cannot use object of type GalleryTemplateAdapter as array in <b>/usr/home/mindless/g2data/smarty/templates_c/%%404975595/%%55^55E^55E14245%%SystemLinks.tpl.php</b> on line <b>15</b><br /> ----------------------------------- Ilia Alshanetsky wrote:
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