Parse error: syntax error, unexpected ',', expecting '(' in ...index.php on line 26

Feed 6 posts, 2 voices

May 31, 2008 02:01
Avatar
284 posts

Did anyone else have this problem?

 
May 31, 2008 02:04
Avatar
284 posts

it was working fine on localhost, then i uploaded it to media temple and got this syntax error. doesn't make sense to me why there would be a syntax error. the line in question (line 26) is: $FROG_CONN->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);

 
May 31, 2008 02:09
Avatar
284 posts

i suspect it might have somethign to do with the config.php or hte .htaccess but i'm not sure what. maybe i set somethig wrong. what should the rewrite base look like? i have it like this: RewriteBase //

 
May 31, 2008 06:43
Avatar
820 posts

Hi Ricks -- that's an odd one. I would try this: check the config.php file for these lines:

// if your server doesn't have PDO (with MySQL driver) set the below to false
define('USE_PDO', false);

If you have "true", try changing it to "false"... See how that goes. My .htaccess "rewrite" line looks like this, btw:

RewriteBase /

Hope that helps! Let us know how it goes...

 
May 31, 2008 15:14
Avatar
284 posts

thanks for the suggestion, david. but it doesn't work. i guess because it's a parse error it doesn't matter if the code is actually called or not.

i also set the rewritebase to what you have, and that didn't help either.

is a PHP version thing? does frog not work on every version? not sure what media temple has installed...

 
May 31, 2008 17:09
Avatar
820 posts

It must be PHP5+. Frog will not work with any earlier versions. Definitely check that out! Most ISPs, I think, now at least give the choice of PHP4 or 5. Frog needs 5!

 
Jun 1, 2008 07:05
Avatar
284 posts

Thank you David! Yes, Media Temple sets everything to PHP4 by default. Had to change it to PHP5. Now it's working. Finally got around to deploying my first frog site :)