Parse error: syntax error, unexpected ',', expecting '(' in ...index.php on line 26
|
May 31, 2008 02:01
284 posts
|
Did anyone else have this problem? |
|
May 31, 2008 02:04
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
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
820 posts
|
Hi Ricks -- that's an odd one. I would try this: check the config.php file for these lines:
If you have "true", try changing it to "false"... See how that goes. My .htaccess "rewrite" line looks like this, btw:
Hope that helps! Let us know how it goes... |
|
May 31, 2008 15:14
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
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
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 :) |