[Solved] parse error in admin panel

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
DaveM
New Member
New Member
Posts: 3
Joined: Mon Apr 19, 2010 7:59 am

[Solved] parse error in admin panel

Post by DaveM »

Hi,

I have been struggling with this for days and wonder if anyone can help.  This is only my second attempt at using CMSMS which I really like.  However, I know very little about PHP and am finding the problem insurmountable.  The other posts on this forum don't describe my problem very closely, so despite not wanting to be a nuisance, here goes.  

I am using

Web server: Apache 2
MySQL: 5.0.89
PHP: 4.4.9
CMSMS: 1.6.6

I have replaced a static site with CMSMS which I installed into a folder called CMS (the static site is still live).  The site worked fine until I tried to move it to the root (public_html).  Then I lost the database connection.  

I deleted the entire CMS folder, then created another with the same name, re-installed CMSMS and restored the database which luckily I had backed up.  I changed the config.php, php.ini and htacess files to point back to the CMS folder and now the site is back and visible once again inside the folder.

But, although I can log in to the admin panel, each time I try to access any content I get this message:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/"mywebsite.co.uk"/public_html/CMS/lib/test.functions.php on line 29

The installation passed checksum, the permissions are set to 711 on the folders and 644 on the .php files.  My client is about to leave the country and I would like to be able to hand it over to him before he goes.  Can anyone advise me please?
Last edited by DaveM on Fri May 07, 2010 4:47 pm, edited 1 time in total.
Salketer

Re: parse error in admin panel

Post by Salketer »

I am not sure what could have caused that.

Your best bet would be to get rid of the static files once a back-up is made and install CMSMS on the root and then moving your database in.

It's always what I do for website migrations.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: parse error in admin panel

Post by calguy1000 »

a) you didn't re-download CMSMS 1.6.6 again (I checked the files), line 29 of that file in CMSMS 1.6.7 is a comment.
b) CMSMS 1.6.6 and CMSMS 1.6.7 are no longer supported.
c) You probably downloaded CMSMS 1.7.x which requires PHP 5.2.x

fixes:
a) Upgrade PHP to 5.2.10+ (you may have to contact your host about this)
    or
b) Re-download CMSMS 1.6.7
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
DaveM
New Member
New Member
Posts: 3
Joined: Mon Apr 19, 2010 7:59 am

[SOLVED}Re: parse error in admin panel

Post by DaveM »

Thank you very much for your help - I have re-installed CMSMS 1.7.1 and upgraded the PHP version to 5, restored the database and we're in business again.  Cheers guys!
Locked

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