bkessler91 Posted January 23, 2013 Share Posted January 23, 2013 Parse error: syntax error, unexpected $end in /home/[directory]/public_html/shopping_cart/ini.inc.php on line 29 Has anyone else seen this? I am getting this message on every page. Can not get to my admin page either. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 23, 2013 Share Posted January 23, 2013 Interesting. Please verify that you are still running PHP 5.3.x as opposed to PHP 5.4.x. Quote Link to comment Share on other sites More sharing options...
bkessler91 Posted January 23, 2013 Author Share Posted January 23, 2013 PHP 5.3.16 Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 23, 2013 Share Posted January 23, 2013 Please open that file for editing and copy/paste in your reply the group of lines from lines 25-32, which should be: // This ensures that everyone has the correct php.ini options running if (PHP_5_3) { ini_set('register_globals', false); // Attempt to disable regster_globals for security ini_set('register_long_arrays', false); // Disable old-school long arrays (i.e. HTTP_*_VARS) ini_set('magic_quotes_gpc', false); // Turn off magic quotes ini_set('magic_quotes_runtime', false); } ini_set('short_open_tag', false); // Disable '<?' style php short tags for xml happiness The error is typically caused by a missing semi-colon at the end of a statement (but before the // comment indicator), or a missing closing brace. Quote Link to comment Share on other sites More sharing options...
bkessler91 Posted January 23, 2013 Author Share Posted January 23, 2013 The only thing in the ini.inc.php file is <?php /* +-------------------------------------------------------------------------- | CubeCart 5 | $Date: 2010-06-04 14:51:49 +0100 (Fri, 04 Jun 2010) $ | ======================================== | CubeCart is a registered trade mark of Devellion Limited | Copyright Devellion Limited 2006. All rights reserved. | License Type: CubeCart is NOT Open Source Software and limitations apply | Licence Info: http://www.cubecart.com/site/faq/license.php +-------------------------------------------------------------------------- */ // I'll be honest, you probably shouldn't tinker with anything in here, all it does is ensure everyone has the same ini settings // If you really must customise anything, create a file called ini-custom.inc.php and put your changes in there //These are in case something goes wrong before we get to debug ini_set('display_errors', true); error_reporting(E_ALL ^ E_NOTICE); define('PHP_5_3', version_compare(PHP_VERSION, '5.3.0', '>=')); /************* CUSTOMISED PHP.INI SETTINGS *************/ // This ensures that everyone has the correct php.ini options running if (PHP_5_3) { ini_set('register_globals', false); ini_set('register_long_arrays', false); Quote Link to comment Share on other sites More sharing options...
bkessler91 Posted January 23, 2013 Author Share Posted January 23, 2013 The only thing in the ini.inc.php file is <?php /* +-------------------------------------------------------------------------- | CubeCart 5 | $Date: 2010-06-04 14:51:49 +0100 (Fri, 04 Jun 2010) $ | ======================================== | CubeCart is a registered trade mark of Devellion Limited | Copyright Devellion Limited 2006. All rights reserved. | License Type: CubeCart is NOT Open Source Software and limitations apply | Licence Info: http://www.cubecart.com/site/faq/license.php +-------------------------------------------------------------------------- */ // I'll be honest, you probably shouldn't tinker with anything in here, all it does is ensure everyone has the same ini settings // If you really must customise anything, create a file called ini-custom.inc.php and put your changes in there //These are in case something goes wrong before we get to debug ini_set('display_errors', true); error_reporting(E_ALL ^ E_NOTICE); define('PHP_5_3', version_compare(PHP_VERSION, '5.3.0', '>=')); /************* CUSTOMISED PHP.INI SETTINGS *************/ // This ensures that everyone has the correct php.ini options running if (PHP_5_3) { ini_set('register_globals', false); ini_set('register_long_arrays', false); Those are lines 1 thru 29... the only lines in the file Quote Link to comment Share on other sites More sharing options...
bkessler91 Posted January 23, 2013 Author Share Posted January 23, 2013 Fixed. I re-uploaded the ini.inc.php... works fine... Quote Link to comment Share on other sites More sharing options...
bkessler91 Posted January 23, 2013 Author Share Posted January 23, 2013 Fixed. I re-uploaded the ini.inc.php... works fine... Any ideas on how or why the file was modified? Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 23, 2013 Share Posted January 23, 2013 I have no idea how that file could have become damaged. It is probably too late, but the timestamp on the file as shown in the FTP directory listing would have shown you the time and date it was last modified. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.