Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error on clean install of 2.3.4 Bootstrap


elf98

Recommended Posts

Trying to make a clean install on new server.

 

All I get is:

Notice: Use of undefined constant DB_SERVER - assumed 'DB_SERVER' in /var/www/html/catalog/includes/OSC/OM/Db.php on line 32

Notice: Use of undefined constant DB_SERVER_USERNAME - assumed 'DB_SERVER_USERNAME' in /var/www/html/catalog/includes/OSC/OM/Db.php on line 36

Notice: Use of undefined constant DB_SERVER_PASSWORD - assumed 'DB_SERVER_PASSWORD' in /var/www/html/catalog/includes/OSC/OM/Db.php on line 40

Notice: Use of undefined constant DB_DATABASE - assumed 'DB_DATABASE' in /var/www/html/catalog/includes/OSC/OM/Db.php on line 44

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2005] Unknown MySQL server host 'DB_SERVER' (2)' in /var/www/html/catalog/includes/OSC/OM/Db/MySQL.php:49 Stack trace: #0 /var/www/html/catalog/includes/OSC/OM/Db/MySQL.php(49): PDO->__construct('mysql:dbname=DB...', 'DB_SERVER_USERN...', 'DB_SERVER_PASSW...', Array) #1 /var/www/html/catalog/includes/OSC/OM/Db/MySQL.php(22): OSC\OM\Db\MySQL->connect() #2 /var/www/html/catalog/includes/OSC/OM/Db.php(60): OSC\OM\Db\MySQL->__construct('DB_SERVER', 'DB_SERVER_USERN...', 'DB_SERVER_PASSW...', 'DB_DATABASE', NULL, Array) #3 /var/www/html/catalog/includes/OSC/Sites/Shop/Shop.php(27): OSC\OM\Db::initialize() #4 /var/www/html/catalog/includes/OSC/OM/SitesAbstract.php(29): OSC\Sites\Shop\Shop->init() #5 /var/www/html/catalog/includes/OSC/OM/OSCOM.php(56): OSC\OM\SitesAbstract->__construct() #6 /var/www/html/catalog/includes/OSC/OM/OSCOM.php(27): OSC\OM\OSCOM::setSite(NULL) #7 /var/www/html/catalog/install/includes/application.php(24): OSC\OM\OSCOM::initia in /var/www/html/catalog/includes/OSC/OM/Db/MySQL.php on line 49

When accessing the site. I get forwarded to the install folder correctly, and it is when install/include/application.php is loaded the fatal error occurs. 

 

How can I fix this error? And yes, I can see that it complains about the database settings, but I thought That I would set them in the install guide?

 

Goal is to migrate my old MS2-site to a new install. And it feels a bit stupid to not even get past the install step. (Yes, I've got a ton of things to fix and import, but first step is to get a clean install...)

Link to comment
Share on other sites

That error tells me that you are not installing the community built responsive version - which (going by the title of your post) I assume you are trying to do;

 

The download links are at shown at

http://www.oscommerce.com/forums/topic/396152-bootstrap-3-in-234-responsive-from-the-get-go/

 

Nuke what you have done so far, download the .zip and install.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...