[solved] v1.8 install error

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

[solved] v1.8 install error

Post 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?
Last edited by newagekat on Thu Jul 08, 2010 10:47 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: v1.8 install error

Post by Nullig »

Perhaps the files didn't upload completely. Check your FTP logs, or try re-uploading.

Nullig
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: v1.8 install error

Post by newagekat »

why would there be a problem uploading when I uploaded the .tar.gz file and extracted?  just curious.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: v1.8 install error

Post 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
newagekat
Forum Members
Forum Members
Posts: 161
Joined: Mon Feb 06, 2006 6:06 pm

Re: v1.8 install error

Post 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?
Last edited by newagekat on Thu Jul 08, 2010 10:46 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: v1.8 install error

Post by Nullig »

Create a file in the CMSMS web root called phpinfo.php with the following line:



And call it in your browser.

Nullig
Locked

Return to “[locked] Installation, Setup and Upgrade”