Announcement

#1 2013-03-12 17:07:50

Andy58
Member
2013-03-12
5

uploaded Piwigo and got error

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

 

#2 2013-03-12 17:14:57

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: uploaded Piwigo and got error

which version of PHP

Offline

 

#3 2013-03-12 17:19:20

Andy58
Member
2013-03-12
5

Re: uploaded Piwigo and got error

5.3.16

Offline

 

#4 2013-03-12 17:33:19

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: uploaded Piwigo and got error

could you replace line 302 by :

Code:

$temp = $template->get_template_vars('derivative_params');
$selected_type = $temp->type;

?

sounds strange to me btw

Offline

 

#5 2013-03-12 20:58:12

Andy58
Member
2013-03-12
5

Re: uploaded Piwigo and got error

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

 

#6 2013-03-12 21:12:43

Andy58
Member
2013-03-12
5

Re: uploaded Piwigo and got error

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

 

#7 2013-03-12 21:16:44

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: uploaded Piwigo and got error

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

 

#8 2013-03-12 21:18:52

Andy58
Member
2013-03-12
5

Re: uploaded Piwigo and got error

I will look around then thanks..I have two websites running fine so I was surprised to have these issues..

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact