lbromford Posted October 10, 2010 Posted October 10, 2010 hi all, For some reason i cant acces the catalog categorie in the oscommerce admin to add edit products i get the following page come up.....any ideas? Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at le-lingerie.co.uk Port 80
artful Posted October 10, 2010 Posted October 10, 2010 hi all, For some reason i cant acces the catalog categorie in the oscommerce admin to add edit products i get the following page come up.....any ideas? Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at le-lingerie.co.uk Port 80 Hi, check your configure.php files both in catalog and admin and also verify if you have an error there in the paths or HTTP/HTTPS definitions. Barbara
lbromford Posted October 10, 2010 Author Posted October 10, 2010 Hi, check your configure.php files both in catalog and admin and also verify if you have an error there in the paths or HTTP/HTTPS definitions. Barbara Hi Barbara, my configure file in admin/includes: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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://Le-lingerie.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://Le-lingerie.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://Le-lingerie.co.uk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/lelinge/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/lelinge/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/lelinge/public_html/'); // 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/'); i only have a configuration.php in catalog......
web-project Posted October 10, 2010 Posted October 10, 2010 check the error logs in hosting control panel. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
MrPhil Posted October 10, 2010 Posted October 10, 2010 It is NOT a 404 error you're getting. Your title is misleading. You're receiving a 500 (Internal Server) error. The "404" is from a misconfigured server, which looks for a custom 500 handler and issues a 404, even if there is a default 500 handler it can fall back to. Create your own error handlers (error pages, error documents) to avoid these spurious 404 messages (see my sig > FAQs > "Missing Support Files". While you're there, also see "500 (Internal Server) Errors" for a list of things that can cause 500 errors. My guess is that you were hacked, and the inserted hack code either fouled up a file or is misbehaving in some way. And don't create multiple threads for the same problem. I reported your other one.
artful Posted October 10, 2010 Posted October 10, 2010 Hi Barbara, my configure file in admin/includes: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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://Le-lingerie.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://Le-lingerie.co.uk'); define('HTTPS_CATALOG_SERVER', 'https://Le-lingerie.co.uk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/lelinge/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/lelinge/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/lelinge/public_html/'); // 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/'); i only have a configuration.php in catalog...... Sorry to take so long to answer. You have an https error : define('HTTPS_CATALOG_SERVER', 'https://Le-lingerie.co.uk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module If ENABLE is false, then you should have this for the line above it without the "s" : define('HTTPS_CATALOG_SERVER', 'http://Le-lingerie.co.uk'); Check for the same problem in catalog/includes/configure.php Barbara
lbromford Posted October 12, 2010 Author Posted October 12, 2010 Sorry to take so long to answer. You have an https error : define('HTTPS_CATALOG_SERVER', 'https://Le-lingerie.co.uk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module If ENABLE is false, then you should have this for the line above it without the "s" : define('HTTPS_CATALOG_SERVER', 'http://Le-lingerie.co.uk'); Check for the same problem in catalog/includes/configure.php Barbara Hi Barbara, I have been able to change the configure.php in the admin/include folders but it wont allow me to change the configure.php in /include folder in either oscommerce file manager ( i dont have permission even tho im admin!) or cpanel, just has an error after saving and the file remains the same, any ideas? Thank you Lee
♥geoffreywalton Posted October 12, 2010 Posted October 12, 2010 Change the permissions on /includes/configure.php to enable you to write to it using he permissions functionality in your hosts admin panel, then upload your new file and change the permissions back to how it was. HTH G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
MrPhil Posted October 12, 2010 Posted October 12, 2010 You have to change both configure.php files to "read only" permissions, to avoid a warning on each page. Actually, it's "read only" from the perspective of PHP not being able to write to the file, but often that means R/O for the owner too (if you have to go to 444). You just have to remember to change it back to "read/write" (644) if you want to edit the file (or upload a new copy), and when you're done, remember to change it back to R/O (444).
lbromford Posted October 13, 2010 Author Posted October 13, 2010 You have to change both configure.php files to "read only" permissions, to avoid a warning on each page. Actually, it's "read only" from the perspective of PHP not being able to write to the file, but often that means R/O for the owner too (if you have to go to 444). You just have to remember to change it back to "read/write" (644) if you want to edit the file (or upload a new copy), and when you're done, remember to change it back to R/O (444). Thank you..... Ok so i've changed both configure.php files removing the s from the https side as i dont have this enabled but im still getting the 500 error page....
lbromford Posted October 13, 2010 Author Posted October 13, 2010 ive just noticed that my two configue.php files are different. The admin/includes configure file is pasted above and the /includes configue below <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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://Le-lingerie.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://Le-lingerie.co.uk'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'Le-lingerie.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'Le-lingerie.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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', '/home/lelinge/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); does this make a difference, is there any errors on this page? thanks in advance
MrPhil Posted October 13, 2010 Posted October 13, 2010 Sorry to take so long to answer. You have an https error : define('HTTPS_CATALOG_SERVER', 'https://Le-lingerie.co.uk'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module If ENABLE is false, then you should have this for the line above it without the "s" : define('HTTPS_CATALOG_SERVER', 'http://Le-lingerie.co.uk'); Check for the same problem in catalog/includes/configure.php Barbara That is incorrect. If ENABLE is false, osC won't use HTTPS_CATALOG_SERVER in the first place, so it will have no effect to make it http:. Just leave it https:, as it won't be used. ive just noticed that my two configue.php files are different. Yes, the two configure.php files are supposed to be different -- be careful that you don't mix them up and overwrite one with the other. Have you read my web information about Internal Server errors, and looked to see if any apply in your case? Usually a 500 error means a corrupted file of some sort.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.