Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment shipping and order total modules not showing


Guest

Recommended Posts

For some reason (I have mode no admin changes) my very efficient OSComerce shop has stopped working !

 

Everything is OK until you get to the shipping stage, were no options show, so you cant get to the payments.

 

If I look in admin / modules none of the installed shipping or payment modules are showing. Clicking on install does not work and still returns an empty list. If I look through FTP I can see all the modules in their relevant sub-directories.

 

Just in case heres a copy of the last working configure.php * replaces sensitive data. The site is www.eee-uk.net, installed in a subdirectory of eeetickets

 

-------------------

<?php

/*

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://eee-uk.net');

define('HTTPS_SERVER', 'https://eee-uk.net');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://eee-uk.net');

define('HTTPS_COOKIE_DOMAIN', 'https://eee-uk.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/eeetickets/');

define('DIR_WS_HTTPS_CATALOG', '/eeetickets/');

define('DIR_WS_IMAGES', '/eeetickets/images/');

define('DIR_WS_ICONS', '/eeetickets/icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'eeeukn00_oscm');

define('DB_SERVER_PASSWORD', 'oscm2006');

define('DB_DATABASE', 'eeeukn00_osc2');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql');

?>

-------------------

 

Hope someone can help before I go mad :)

 

 

Steve

Link to comment
Share on other sites

Never post your database name, username and password. That's an open invitation for hackers.

 

Your config file is not quite correct - here's an example of what it should look like:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://yourdomain.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Link to comment
Share on other sites

Never post your database name, username and password. That's an open invitation for hackers.

 

Your config file is not quite correct - here's an example of what it should look like:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://yourdomain.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

Thanks for your help Jason :) (A Londoner in LA, is is the people ? Weather ?)

 

The customer side of things works perfect now with this, but its really screwed up the admin. I tried various path changes and can get customer side and admin working, but not at the same time ...

 

Basic question ... is/are the configure.php file(s) supposed to be the same in

 

/home/eeeukn00/public_html/eeetickets/includes/configure.php

 

/home/eeeukn00/public_html/eeetickets/admin/includes/configure.php

 

Anyone ???

 

 

Steve

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://eee-uk.net');

define('HTTPS_SERVER', 'https://eee-uk.net');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://eee-uk.net');

define('HTTPS_COOKIE_DOMAIN', 'https://eee-uk.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/eeetickets/');

define('DIR_WS_HTTPS_CATALOG', '/eeetickets/');

define('DIR_WS_IMAGES', '/eeetickets/images/');

define('DIR_WS_ICONS', '/eeetickets/icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

Link to comment
Share on other sites

Oh it's the weather - 94 here yesterday ;-) Here's an exmaple of what your ADMIN config file should look like :

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://somewebsite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://somewebsite.com');

define('HTTPS_CATALOG_SERVER', 'https://somewebsite.com');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/store/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/store/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Rremember to set SSL to true and and get SSL working for your store front pages - here's a good guide:

 

http://www.oscommerce.com/forums/index.php?showtopic=151162

Link to comment
Share on other sites

Thanks again ... and 94 is probably a bit high for me unless I've got aircon on 24/7 :)

 

The below makes everything look pretty again, but back to square on with the modules not showing in admin

and you cant get ast the shipping page as a customer because there are no options to select.

 

Logically I can assume that for some reason the modules folder can't be found or read. The path shows ok on the admin page, but the list is empty. Checking on FTP shows all files and permissions are OK.

 

In an attempt to learn more and figure it out myself I have made changes to paths in configure.php and seen the effect they have, so I feel I understand the paths. If the images path is wrong I get no images, and logically if the images path works the logic should be the same for modules.

 

I also know this is simple to fix in principle, its probably one line or minor change somewhere ... but where ?

 

Its still driving me mad as I've spent a few hours changing paths etc and sort of going round in circles ...

 

Steve

 

-------------------------

 

(ADMIN) /home/eeeukn00/public_html/eeetickets/admin/includes/configure.php

 

define('HTTP_SERVER', 'http://eee-uk.net'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://eee-uk.net');

define('HTTPS_CATALOG_SERVER', 'https://eee-uk.net.net');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', '/eeetickets/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/eeetickets/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_FS_MODULES', DIR_FS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection

 

 

(THE OTHER ONE !!!) /home/eeeukn00/public_html/eeetickets/includes/configure.php

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://eee-uk.net');

define('HTTPS_SERVER', 'http://eee-uk.net');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://eee-uk.net');

define('HTTPS_COOKIE_DOMAIN', 'https://eee-uk.net');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/eeetickets/');

define('DIR_WS_HTTPS_CATALOG', '/eeetickets/');

define('DIR_WS_IMAGES', '/eeetickets/images/');

define('DIR_WS_ICONS', '/eeetickets/icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

Link to comment
Share on other sites

FIXED !!!

 

SOLUTION WAS ...

 

'flat.php' entry physically missing from the database ... why ???

(I dont care at the moment, but it will bug me for a bit longer)

 

TIP ? If you cant see anything wrong in configure.php or any other php file,

physically look in the database using PHPmyadmin, and browse the fields,

comparing them to a last known good copy (might be hard, but I compared my

against a virgin install that worked) ... and when I copied the databse over to try

to use this copy as my new master, the error re-created itself, with the only change

being the databse data it narrowed things down, so I looked through the configuration

section of the databse first, and entry 69/shipping module didn't compare, field was

empty on one ...

 

Steve :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...