Jason4108 Posted January 23, 2004 Share Posted January 23, 2004 Admin works, only appears when trying to access the shop. This might have been answered before, but I have been looking for about an hour on the forums and I still can't find it, I have a headace from it. My error: Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/morepain/public_html/shop/includes/application_top.php on line 261 Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/morepain/public_html/shop/includes/application_top.php on line 261 If the question has answered before, just give me a link to it. Thanks alot! Link to comment Share on other sites More sharing options...
241 Posted January 23, 2004 Share Posted January 23, 2004 The question has been asked and answered many times before. A link I am not sure. It is covered in the wiki docs and a link to wiki is in my signature, it should be under configure.php It looks like a path is wrong for your catalog/includes/configure.php cross check the information contained in your admin/includes/configure.php against the information in your catalog/includes/configure.php No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 <?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://morepaintball.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://morepaintball.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shop/'); // 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', ''); define('DIR_FS_CATALOG', '/home/morepain/public_html/shop/'); 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'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'xxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxx'); define('DB_DATABASE', 'xxxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 are the admin configure and main configure the same can I just overwrite the main config with the admin one? Link to comment Share on other sites More sharing options...
241 Posted January 23, 2004 Share Posted January 23, 2004 it should be something like this define('HTTP_SERVER', 'http://morepaintball.com'); // eg, http://localhost - should not be empty for productive servers ?define('HTTPS_SERVER', 'https://morepaintball.com'); // eg, https://localhost - should not be empty for productive servers ?define('ENABLE_SSL', true); // secure webserver for checkout procedure? ?define('HTTP_COOKIE_DOMAIN', 'http://morepaintball.com'); ?define('HTTPS_COOKIE_DOMAIN', 'https://morepaintball.com'); ?define('HTTP_COOKIE_PATH', '/shop/'); ?define('HTTPS_COOKIE_PATH', '/shop/'); ?define('DIR_WS_HTTP_CATALOG', '/shop/'); ?define('DIR_WS_HTTPS_CATALOG', '/shop/'); ?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', '/home/morepain/public_html/shop/'); ?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); ?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); and is define('DB_SERVER', 'localhost'); the same in the admin/includes/configure.php I noticed that you had no cookie info the two files are similar but not exactly the same, but you can get some of the information from one to complete the other the database info is the same No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 i did that like you said but I still have the error. <?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://morepaintball.com'); // eg, http://localhost or - https://localhost should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://morepaintball.com'); define('HTTPS_CATALOG_SERVER', 'https://morepaintball.com'); define('ENABLE_SSL_CATALOG', true); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', ''); // where the pages are located on the server define('DIR_WS_ADMIN', '/shop/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/morepain/public_html/shop/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/shop/'); // absolute path required define('DIR_FS_CATALOG', '/home/morepain/public_html/shop/'); // 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', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'xxxx'); define('DB_SERVER_PASSWORD', 'xxxx'); define('DB_DATABASE', 'xxxx'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> in case this helps it my admin configure. Link to comment Share on other sites More sharing options...
241 Posted January 23, 2004 Share Posted January 23, 2004 admin configure.php missing define('DIR_FS_DOCUMENT_ROOT', ''); // where the pages are located on the server needs to be define('DIR_FS_DOCUMENT_ROOT', ''/home/morepain/public_html/shop/'); // where the pages are located on the server that is why you have the errors related to define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); as per your original post Warning: main(includes/languages/.php): failed to open stream: No such file or directory No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 thanks, but my main shop page still doesn't work :( o you added soem stuff let me try it. Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 i even tried uploading my admin config to the main include folder config and it still doesn't work. Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 hey it doesn't appear to be a path error, it seems that its not inserting the language into the thing. includes/languages/.php should be includes/languages/english.php Link to comment Share on other sites More sharing options...
241 Posted January 23, 2004 Share Posted January 23, 2004 I did say that they were not the same files only similar and that some of the information can be used. Do you have ssl if not have you tried disabling it No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
241 Posted January 23, 2004 Share Posted January 23, 2004 do the english folder and english.php exist in the catalog/includes/languages/ No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Jason4108 Posted January 23, 2004 Author Share Posted January 23, 2004 tried disabling sll and made sure the english.php is there. Have you run out of ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.