Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Error at installation


Recommended Posts

I'm an utter newbie at this and have very little experience with PHP. I just uploaded the "oscommerce" folder of version 3.0.2 to the public_html directory of my website. I went to http://www.mysite.com/oscommerce/ and immediately got the following error:


Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/mysite/public_html/oscommerce/index.php on line 9


This is the contents of index.php:


* osCommerce Online Merchant
* @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com
* @license BSD License; http://www.oscommerce.com/bsdlicense.txt
 use osCommerce\OM\Core\Autoloader;
 use osCommerce\OM\Core\OSCOM;
 define('OSCOM_TIMESTAMP_START', microtime());
 error_reporting(E_ALL | E_STRICT);
 define('OSCOM_PUBLIC_BASE_DIRECTORY', __DIR__ . '/');
 $OSCOM_Autoloader = new Autoloader('osCommerce\OM');


How can I fix this?


Should I just try to install the earlier version?

Link to comment
Share on other sites

Much better solution.


If you want some useful posts on how osc works and what needs configuring pop over to my profile.





Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile


Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.


For links mentioned in old answers that are no longer here follow this link Useful Threads.


If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Thank you so much. I had my last shopping cart hacked and know the problems that can ensue. Not only that, but all the basic instruction on getting my store working is amazing. I went into this blind, but I'm going to be an OSC expert when I'm done reading all your material & linked info!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...