Page 1 of 1

Getting a Parse Error (previously working)

Posted: Sat Aug 14, 2010 2:52 am
by Geronimo
Hello,
I'm running the following version:
CMS Made Simple 1.5 "Puerto Rico"
Server API (server_api):
cgi-fcgi
Server Database (server_db_type):
MySQL (mysql)
Server Database Version (server_db_version):
5.0.91
Server Software (server_software):
Apache
Server Operating System (server_os):
Linux 2.4.21-63.ELsmp On i686

So today I get a phone call that the website I'm running isn't working and I get the following error when i check it out:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/j/o/n/xxxxxxxx/html/index.php on line 64

So I searched through the forum and this is the closest thing I found related to this problem:
http://forum.cmsmadesimple.org/index.ph ... 271.0.html
http://forum.cmsmadesimple.org/index.ph ... ic=31263.0

Any suggestions from anyone here?  I'd like to get this site back up and running; I'm really amature about this stuff and I'm just trying to do my best to keep this site going....everyone's been calling me and I have no idea what to do! Please help!!

Re: Getting a Parse Error (previously working)

Posted: Sat Aug 14, 2010 8:20 pm
by NaN
Sorry to tell you, but your site might have been hacked.
It is recommended to upgrade at least to CMSms 1.6.8.
If your server runs with PHP 5.2.4+ upgrade to 1.8.2.
There has been security leaks in older versions that are fixed in the latest versions.

First of all, get an FTP software (like FileZilla - i know it is not the best idea, but the easiest to use).
Download the CMSms install package of CMSms 1.5.
Extract it to your desktop.
Upload the file index.php to your server in that directory CMSms is installed using the FTP software.
Be sure to overwrite the file.
After this right mouse click at the uploaded file in your FTP software and set filepermissions to 444.
Check also the filepermissions of the config.php.

This is the quick an dirty "solution" but it does not fix the problem at all.
You should really upgrade your CMS.

Re: Getting a Parse Error (previously working)

Posted: Sat Aug 14, 2010 10:04 pm
by replytomk3
Or your host upgraded the PHP version without telling you. PM me link. Login to admin, and post here system information.

Re: Getting a Parse Error (previously working)

Posted: Sat Aug 14, 2010 10:36 pm
by NaN
Syntax Error in index.php cannot be caused by PHP 5.3.
In CMSms 1.5 in line 64 originally there is this:

Code: Select all

if (!file_exists(CONFIG_FILE_LOCATION) || filesize(CONFIG_FILE_LOCATION) < 800)
{
    require_once($dirname.'/lib/misc.functions.php');
    if (FALSE == is_file($dirname.'/install/index.php')) {
        die ('There is no config.php file or install/index.php please correct one these errors!');
    } else {
        redirect('install/');
    }
}
else if (file_exists(TMP_CACHE_LOCATION.'/SITEDOWN'))
{
// start line 64:
 echo "<__html><head><title>Maintenance</title></head></__body><p>Site down for maintenance.</p><__body></__html>";
// end of line 64
	exit;
}


Re: Getting a Parse Error (previously working)

Posted: Mon Dec 06, 2010 8:41 pm
by rickertb
Your website was injected with malware or at-least they tried to do so.

See my other post
http://forum.cmsmadesimple.org/index.ph ... 17.15.html