modules/comment/callback.inc - cannot use a scalar value as an array

GwaiTsi

Joined: 2007-02-09
Posts: 56
Posted: Tue, 2009-05-12 18:24

I get the following errors in both embedded and direct modes using Gallery 2.3,Joomla 1.5.10 and G2Bridge 2.10 Alpha

The problems appears with debug mode on and viewing the album pages.

Warning: Cannot use a scalar value as an array in /var/www/gallery2/modules/comment/Callbacks.inc on line 162
Warning: Cannot use a scalar value as an array in /var/www/gallery2/modules/comment/Callbacks.inc on line 138

Changing the lines per below, does not work
$block = array();
$block =& $smarty->_tpl_vars['block'];
$block['comment']['AddComment'] = $AddComment;

Changing the lines per below, solves the scalar value error but creates new errors
$block =& $smarty->_tpl_vars['block'];
$block = array();
$block['comment']['AddComment'] = $AddComment;

After changing lines per the above, i now receive the error
Notice: Undefined index: 0 in /g2data/smarty/templates_c/%%440549966/x_treme/%%F2^F25^F25D63DA%%navigatorTop.tpl.php on line 589

grateful for any assistance here

 
momochu

Joined: 2009-05-20
Posts: 1
Posted: Wed, 2009-05-20 13:56

...