Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Area Unavailable


yulem

Recommended Posts

After performing an uneventful install of osCommerce 2.2 Milestone 2 Update 060817 the user area worked fine but the admin area returned a blank browser page. The only evidence of a problem was in the apache eror log which reported parser error on line 33 of .../admin/includes/classes/sessions.php. I looked a the code and determined that it was not different from the code on my development system which worked fine.

 

I commented out that line of code < var $cookie_path = substr(DIR_WS_ADMIN, 0, -1); > to provoke an error message. For whatever reason everything now appears to work fine. I removed the comments and it broke again.

 

I suspect that the issue is not with the sessions.php file but rather DIR_WS_ADMIN. For obvious reasons I'm not satisfied with just making it work and would kike to know if anyone has experience anything similar. I'm looking for a root cause. Inspection of configure.php didn't reveal anything to me. I'm including it for others to check.

<?php
/*
 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://yulemshop.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://yulemshop.com');
 define('HTTPS_CATALOG_SERVER', 'https://secure.yulemshop.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/usr/local/www/oscommerce/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/usr/local/www/oscommerce/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/usr/local/www/oscommerce/'); // absolute path required
 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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'yulem');
 define('DB_SERVER_PASSWORD', 'odjozVef0OtByss');
 define('DB_DATABASE', 'yulem');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Thanks,

Ralph

Link to comment
Share on other sites

Try to correct your file with following:

delete trailing slash DIR_FS_DOCUMENT_ROOT

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

Link to comment
Share on other sites

Try to correct your file with following:

delete trailing slash DIR_FS_DOCUMENT_ROOT

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

Hi,

Thanks for your help.

I made the changes to ../admin/includes/configure.php suggested but the problem still exists when I uncomment the code in sessions.php. If I again comment out the code in sessions.php then admin again works! Crazy!!

Ralph

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...