Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error at installation


MichelleDW

Recommended Posts

Posted

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:

 

<?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__ . '/');
 require('osCommerce/OM/Core/Autoloader.php');
 $OSCOM_Autoloader = new Autoloader('osCommerce\OM');
 $OSCOM_Autoloader->register();
 OSCOM::initialize();
 require($OSCOM_Template->getTemplateFile());
?>

 

How can I fix this?

 

Should I just try to install the earlier version?

Posted

I just figured out my problem, installed version 2.3.1 successfully. I would've deleted or edited this post, but it doesn't seem like I can.

Posted

Much better solution.

 

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

 

Enjoy

 

G

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 ======>>>>>.

Posted

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!

Archived

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

×
×
  • Create New...