rod_c Posted February 3, 2008 Posted February 3, 2008 Hi every one. I’m new to these forums and relatively new to osCommerce. I have almost completed the site ready to go live and just recently added an SSL cert and edited the configure.php files to enable the SSL cert. Now when I go in to the admin section and try and change the postal address of our shop it won’t update instead it just leaves it blank. And when I try and edit the details for the payment options for any of the payment methods I get this error message. Warning: Variable passed to each() is not an array or object in /hsphere/local/home/dewdropa/dewdropinn.com.au/admin/modules.php on line 46 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/dewdropa/dewdropinn.com.au/admin/modules.php:46) in /hsphere/local/home/dewdropa/dewdropinn.com.au/admin/includes/functions/general.php on line 22 I can only really put it down to the configure files as they are the last thing I can remember changing from before this has happened. If any one has any idea what the problem is or how to go about fixing it that would be greatly appreciated. Regards Rod
Guest Posted February 3, 2008 Posted February 3, 2008 Did you make a backup copy of your config file? Post your admin/includes/configure.php MINUS THE DATABASE INFO.
rod_c Posted February 3, 2008 Author Posted February 3, 2008 /admin/includes/configure.php <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.dewdropinn.com.au'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.dewdropinn.com.au'); define('HTTPS_CATALOG_SERVER', 'https://www.dewdropinn.com.au'); 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', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); 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/'); // define our database connection define('DB_SERVER', ''); define('DB_SERVER_USERNAME', 'mysql'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> /admin/includes/local/configure.php <? define('HTTP_SERVER', 'http://www.dewdropinn.com.au'); define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/dewdropa/dewdropinn.com.au/'); define('DIR_FS_LOGS', '/hsphere/local/home/dewdropa/logs/dewdropinn.com.au'); define('ENABLE_SSL', 1); // define our database connection define('DB_SERVER', 'XXXXXXX'); define('DB_SERVER_USERNAME', 'XXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXX); define('DB_DATABASE', 'XXXXXXX'); define('CONFIGURE_STATUS_COMPLETED', 1); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> /catalog/includes/configure.php <?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 (c) 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://www.dewdropinn.com.au'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.dewdropinn.com.au'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . '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', ''); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> /catalog/includes/local/configure.php <? define('HTTP_SERVER', 'http://www.dewdropinn.com.au'); define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/dewdropa/dewdropinn.com.au/'); define('DIR_FS_LOGS', '/hsphere/local/home/dewdropa/logs/dewdropinn.com.au'); define('ENABLE_SSL', 1); // define our database connection define('DB_SERVER', 'XXXXXXXX'); define('DB_SERVER_USERNAME', 'XXXXXXX'); define('DB_SERVER_PASSWORD', 'XXXXXXXX'); define('DB_DATABASE', 'XXXXXXX'); define('CONFIGURE_STATUS_COMPLETED', 1); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?>
rod_c Posted February 3, 2008 Author Posted February 3, 2008 BUMP.. Cant any one help me with this one?? :(
Recommended Posts
Archived
This topic is now archived and is closed to further replies.