Parse error: syntax error, in index.php

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Locked
adopnet
New Member
New Member
Posts: 2
Joined: Mon Dec 22, 2014 1:43 pm

Parse error: syntax error, in index.php

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post by Rolf »

Looks like it is already hacked to me...
http://sitecheck.sucuri.net/results/daytontemple.com
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post 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.
adopnet
New Member
New Member
Posts: 2
Joined: Mon Dec 22, 2014 1:43 pm

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

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post 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!
Locked

Return to “The Lounge”