View Full Version : Parse error: syntax error, unexpected T_STRING
David Hardwick
08-28-2006, 02:07 PM
The directory has been working brilliantly for months now all of a sudden I am getting this error.
Parse error: syntax error, unexpected T_STRING in /hshome/hsphere/local/home/unixmana/bishops-stortford.co.uk/includes/config.inc.php on line 110
I have contacted the server provider to see if anything has changed, they don't know the cause of the problem and so have tried resetting the webserver and left it at that.
Your help would be much appreciated folks.
Dave
redeye
08-28-2006, 03:17 PM
Something has obviously been corupted in the file.
The syntax on every line should be the same so look for anything missing or extra on the line.
Can you post the line so we can check it out?
Sergey Ten
08-31-2006, 03:08 PM
Welcome to our support forum David Hardwick,
Yes, redeye is right. Could you please post your config.inc.php file and I check up it.
David Hardwick
09-01-2006, 01:52 PM
Thanks guys, much appreciated. here is the config.inc.php. doesn't have 110 lines though?
<?php
$gDirConfig['base'] = 'http://www.bishops-stortford.co.uk';
$gDirConfig['site'] = 'eSyndiCat Directory';
$gDirConfig['dir_path'] = '/';
$gDirConfig['dir'] = '/';
$gDirConfig['admin'] = 'admin/';
$gDirConfig['backup'] = 'backup/';
$gDirConfig['img'] = 'img/';
$gDirConfig['templates'] = 'templates/';
$gDirConfig['site_email'] = 'support@bishops-stortford.co.uk';
$gDirConfig['bugs_email'] = 'support@bishops-stortford.co.uk';
$gDirConfig['tmpl'] = 'SunnyDay';
$gDirConfig['lang_path'] = '/language/';
$gDirConfig['lang'] = 'English';
$gDirConfig['charset'] = 'iso-8859-1';
$gDirConfig['dbhost'] = 'mysql4.dplc.co.uk';
$gDirConfig['dbuser'] = 'dpcserv_user';
$gDirConfig['dbpwd'] = '********';
$gDirConfig['dbname'] = 'dpcserv_bsdb';
$gDirConfig['prefix'] = 'dir_';
$gDirConfig['suffix'] = ' :: Powered by eSyndiCat';
$gDirConfig['links_sorting'] = 'date';
$gDirConfig['links_sorting_type'] = 'descending';
$gDirConfig['related'] = '0';
$gDirConfig['neighbour'] = '0';
$gDirConfig['num_categories_cols'] = '3';
$gDirConfig['num_index_links'] = '10';
$gDirConfig['num_new_links'] = '20';
$gDirConfig['num_top_links'] = '20';
$gDirConfig['num_popular_links'] = '20';
$gDirConfig['num_navig_pages'] = '5';
$gDirConfig['subcats_display'] = '0';
$gDirConfig['date_format'] = '%b %e, %Y';
$gDirConfig['editors'] = '0';
$gDirConfig['adsense'] = '0';
$gDirConfig['pagerank'] = '0';
$gDirConfig['alexa'] = '0';
$gDirConfig['alexa_thumbs'] = '0';
$gDirConfig['thumbshot'] = '0';
$gDirConfig['category_lock'] = '0';
$gDirConfig['category_path'] = '0';
$gDirConfig['link_comments'] = '0';
$gDirConfig['new_window'] = '0';
?>
Red:
Edited out your db password!!
Be careful when you post not to leave passwords etc. showing!
redeye
09-01-2006, 02:04 PM
Which version is file for?
Sergey Ten
09-02-2006, 05:06 PM
Hello David Hardwick,
Please send me your FTP credentials and I will try fix your issue.
sten@esyndicat.com
Sergey Ten
09-05-2006, 05:47 PM
Hello David Hardwick,
I have fixed your problem and I sent you email.
wisam74us
12-03-2007, 05:16 AM
Same here
Parse error: syntax error, unexpected T_STRING in /home/XXXX/public_html/includes/config.inc.php on line 525
I have more than 5 website base on esyndicat, weird things happening in the last month, on website shows blank page so I need to upload the backup files to get it back to work ,, for other i get syntax errors .. I am not sure what is going on but most likely these are hackers attempts since this file has 666 permissions .. I am trying to figure out the reason with my host .. but meanwhile I am trying to upgrade my directories to the newest version, any how I hope the guys in the technicals support department explain more about the reason behind this
Simon Gooffin
12-06-2007, 08:17 AM
Submit your ftp credentials with the problem description in our helpdesk. Our tech guys will try to investigate the problem.
wisam74us
12-08-2007, 01:32 AM
Thanks Simon, obviously somebody is hacking the script .. that is what I have been told by my host, and the bad news is that Version 2.1.02 was hacked few days before for me.
I tried to search the forum for upgrade documentation but it looks I don't have access to the PRO forum and I don't know why.
Simon Gooffin
12-10-2007, 08:00 AM
Hmm, we do not have any reports of hacked 2.1 version. Anyhow we highly recommend to upgrade your version to the latest one.
I have just enabled pro forums for you. I'm sorry for the inconvenience,
wisam74us
12-11-2007, 05:43 AM
Here is another one
http://www.top10toronto.ca/directory/
It is a blank page .. I think I just need to replace the config.php with the back up one and it will work again this is 2.1
Simon Gooffin
12-11-2007, 06:06 AM
It does not work :(
wisam74us
12-11-2007, 01:22 PM
That is what I am saying, with 2.1 it is like this .. over night you will say a blank page, your database will stay untouched, your admin area will keep working .. then you need just to replace the files and it will work again. I have some 1.2 directories installed on the same server, I dont know if somebody use their vulnerability to hack the 2.1 version.
Simon Gooffin
12-12-2007, 06:23 AM
Yes, it's rather possible there is a problem with the server. I would highly recommend to upgrade all your 1.2 version to avoid this problem
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.