Page 1 of 1

[solved] v1.8 install error

Posted: Thu Jul 08, 2010 9:55 pm
by newagekat
Hi:

I've uploaded the new v1.8 on a client's server via cpanel.  The server is running php v5.2.12 with PHP suExec running MySQL v4.1.22-standard on Apache version 2.2.14.  When I tried to install, I'm getting this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/keepsake/public_html/newsite/lib/test.functions.php on line 36

Can anyone point out a solution?

Re: v1.8 install error

Posted: Thu Jul 08, 2010 10:16 pm
by Nullig
Perhaps the files didn't upload completely. Check your FTP logs, or try re-uploading.

Nullig

Re: v1.8 install error

Posted: Thu Jul 08, 2010 10:23 pm
by newagekat
why would there be a problem uploading when I uploaded the .tar.gz file and extracted?  just curious.

Re: v1.8 install error

Posted: Thu Jul 08, 2010 10:37 pm
by Nullig
Didn't know you did it that way.

Well, I guess that's not the problem.

Are you sure you're using PHP5, 'cause that error would be returned by PHP4 for "public" declarations, which that line of code is using.

Nullig

Re: v1.8 install error

Posted: Thu Jul 08, 2010 10:41 pm
by newagekat
Well at least the info from cpanel says php v5.2.12.

for anyone else experiencing this problem, and you have uploaded via cpanel the tar.gz file and extracted, here's what I did.  In cpanel, under Software / Services, click PHP configuration.

on line 2, it says: The ".php" file extension will be processed by System Default.  use the drop down to change that to PHP 5.

no need to re-upload all the files via ftp

do i feel stupid or what?

Re: v1.8 install error

Posted: Thu Jul 08, 2010 10:44 pm
by Nullig
Create a file in the CMSMS web root called phpinfo.php with the following line:



And call it in your browser.

Nullig