Guest Posted February 20, 2003 Share Posted February 20, 2003 Hi peeps, in an effort to make the catalog appear at the top level, I followed the advice of someone and changed the define('DIR_WS_CATALOG', 'catalog/'); in configure.php to / instead of catalog. After moving my site up a level. I decided to put i back and now I get the error below. I reset the DIR_WS_CATALOG back to catalog but it doesnt work, I have made the code more readable to myself in an effort to fix the prob. Here is the current code. Also I think i Put the dirs/files back correctly but cannot be sure. <?php/* osCommerce, Open Source E-Commerce Solutions */ // Define the webserver and path parameters// * // DIR_FS_* = Filesystem / directories (local/physical) // DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://stueyb2u.phenominet.com'); // define('HTTPS_SERVER', 'https://stueyb2u.phenominet.com'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', 'catalog/'); // absolute path required 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', '/home/stueyb2u/public_html'); define('DIR_FS_CATALOG', '/home/stueyb2u/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); The error Parse error: parse error in /home/stueyb2u/public_html/catalog/includes/configure.php on line 6 Fatal error: Failed opening required 'DIR_WS_FUNCTIONSsessions.php' (include_path='.:/usr/share/pear') in /home/stueyb2u/public_html/catalog/includes/application_top.php on line 151 Link to comment Share on other sites More sharing options...
mugitty Posted February 20, 2003 Share Posted February 20, 2003 Stuart; This may not solve it all, but try putting a slash in front of 'catalog': define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); Stuart ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
Mark Russell Posted February 20, 2003 Share Posted February 20, 2003 Try putting a forward slash before "catalog/", like this: define('DIR_WS_CATALOG', '/catalog/'); Mark Link to comment Share on other sites More sharing options...
Guest Posted February 20, 2003 Share Posted February 20, 2003 Its fixed (phew) It was a number of things. Firstly, the initial php opening brace had loads of crap in it. Secondly database.php was in the wrong folder and finally, as you said the slash sealed it :) Thanks for that Link to comment Share on other sites More sharing options...
Mark Russell Posted February 20, 2003 Share Posted February 20, 2003 cool 8) Mark Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.