Page 1 of 1

[Solved] parse error in admin panel

Posted: Tue May 04, 2010 2:47 pm
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?

Re: parse error in admin panel

Posted: Tue May 04, 2010 6:46 pm
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.

Re: parse error in admin panel

Posted: Tue May 04, 2010 6:52 pm
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

[SOLVED}Re: parse error in admin panel

Posted: Fri May 07, 2010 4:46 pm
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!