Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/cponygo2/public_html/piwigo/index.php on line 302
line 302 $selected_type = $template->get_template_vars ('derivative_params')->type;
303 $template->clear_assign( 'derivative_params' );
304 $type_map = ImageStdParams::get_defined_type_map();
unset($type_map[IMG_XXLARGE], $type_map[IMG_XLARGE]);
foreach($type_map as $params)
Offline
which version of PHP
Offline
could you replace line 302 by :
$temp = $template->get_template_vars('derivative_params'); $selected_type = $temp->type;
?
sounds strange to me btw
Offline
appreciated the quick reply but just after, my cable company did a repair and knocked me off line for a couple hours...any who-
I replaced line 302 with your updated line and got the exact same error code..
Offline
as a added note I was trying to open the website when I got that code. So I tried the admin link sent to me and I got this code--
Parse error: syntax error, unexpected '{' in /home/cponygo2/public_html/piwigo/include/common.inc.php on line 113
this is the code...starting at 113 to 116
{
pwg_db_connect($conf['db_host'], $conf['db_user'],
$conf['db_password'], $conf['db_base']);
}
Offline
well I can't help anymore
looks like your PHP crashes on any common pattern....
you could try overwrite all Piwigo files from a fresh downloaded ZIP
Offline
I will look around then thanks..I have two websites running fine so I was surprised to have these issues..
Offline