Page 1 of 1

Parse error: syntax error, in index.php

Posted: Mon Dec 22, 2014 1:54 pm
by adopnet
I have CMSMS version 1.9.4.3 installed for a while and all of a sudden I am getting this message on all my pages.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /public_html/daytontemple.com/index.php on line 56

What could cause this error on a site that was running fine for years?

Any help is appreciated.

Thx

Re: Parse error: syntax error, in index.php

Posted: Mon Dec 22, 2014 6:05 pm
by Dr.CSS
Most likely the server has been upgraded and that is probably a bad piece of code as newer versions of PHP are more sensitive to bad syntax, IIRC...

BTW, is a good idea to upgrade as older version are vulnerable...

Re: Parse error: syntax error, in index.php

Posted: Mon Dec 22, 2014 6:40 pm
by Rolf
Looks like it is already hacked to me...
http://sitecheck.sucuri.net/results/daytontemple.com

Re: Parse error: syntax error, in index.php

Posted: Tue Dec 23, 2014 2:01 pm
by velden
Although the website mentioned by Rolf seems to draw conclusions of being based too quickly, I do think the index.php is tempered with/got corrupted. Which indeed could be caused by hacking.

Re: Parse error: syntax error, in index.php

Posted: Tue Dec 23, 2014 2:19 pm
by adopnet
Thanks Dr.CSS, Rolf and velden for your expert advise. I am a beginner in CMS made simple and inherited this site from another admin.
1. I replaced the index.php file and that seems to have fixed the issue temporarily. The site is loading very slowly.
2. I would like to upgrade the CMSMS to the latest ver. as the site is currently at 1.9.4.3. The host for this site is hostgator. Can you plz point me to any documentation on how CMSMS is installed (where the db resides) as it does not seem to be a standard install available under Hostgator cPanel. I will take this question to the install forum if that is where it belongs.

But thanks again for your prompt and useful help on this matter.

Re: Parse error: syntax error, in index.php

Posted: Tue Dec 23, 2014 3:49 pm
by velden
Personally I would not feel comfortable with an install which seems to have (had) compromised files.
Though index.php is ok now I would want to know how it got tempered/corrupted.

We don't know where the database resides but you do. Have a look at the config.php file in the cmsms folder (same folder as index.php). There the database information is stored.

Upgrade information is found here: http://docs.cmsmadesimple.org/

Make sure to make a backup before upgrading (files and database).

Again, upgrading a compromised site will NOT make sure it's safe afterwards!