yulem Posted November 4, 2006 Share Posted November 4, 2006 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 More sharing options...
oschellas Posted November 5, 2006 Share Posted November 5, 2006 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 More sharing options...
yulem Posted November 5, 2006 Author Share Posted November 5, 2006 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 More sharing options...
crash3903 Posted November 5, 2006 Share Posted November 5, 2006 Try changing this define('STORE_SESSIONS', 'mysql'); To this... define('STORE_SESSIONS', ''); See if that helps at all Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
yulem Posted November 5, 2006 Author Share Posted November 5, 2006 Try changing this To this... See if that helps at all Hi, Made the change you suggested but the problem still remains. Link to comment Share on other sites More sharing options...
oschellas Posted November 6, 2006 Share Posted November 6, 2006 Have a look at this previous topic Link to comment Share on other sites More sharing options...
yulem Posted November 6, 2006 Author Share Posted November 6, 2006 Have a look at this previous topic Hi, Thank you very much! Afer reading the post you suggested I identified that my PHP sessions wasn't working on my host's system. They corrected the problem and all is fine. Ralph Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.