patmazuel Posted March 16, 2010 Share Posted March 16, 2010 Hi, I had osCommerce working on my local computer with Wamp, but am having a slight problem with it on my site. Almost everything works great, except the images in the admin section. The images in the catalog are working. Erreur : Le répertoire d'images n'existe pas : http://www.mysite.fr/catalog/images/ Translated from the french, : Error the image folder doesn't exist, then it shows me http://www.mysite.fr/catalog/images/ which is the image folder. If I type the above link into browser, I do see my image folder. So something must be wrong in my definitions below. This is a (modified) copy of my configure.php in catalog/admin/includes <?php /* $Id: configure.php,v 1.15 15/04/2008 16:26:48 Oneill-Gnidhal Exp $ $$ : admin directory site osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License define('HTTP_SERVER', 'http://www.mysite.fr'); define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', 'http://www.mysite.fr'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'http://www.mysite.fr/catalog//'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', 'http://www.mysite.fr/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', 'http://www.mysite.fr/catalog/'); 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('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'nnnnn'); define('DB_SERVER_PASSWORD', 'xxxxxxx'); define('DB_DATABASE', 'my_bdd'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted March 16, 2010 Share Posted March 16, 2010 This.. define('HTTP_CATALOG_SERVER', 'http://localhost'); is not going to work on your server. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
patmazuel Posted March 16, 2010 Author Share Posted March 16, 2010 OPPS sorry, I did not copy my latest try. define('HTTP_SERVER', 'http://www.mysite.fr'); define('HTTP_CATALOG_SERVER', 'http://www.mysite.fr'); define('HTTPS_CATALOG_SERVER', 'http://www.mysite.fr'); This.. define('HTTP_CATALOG_SERVER', 'http://localhost'); is not going to work on your server. Link to comment Share on other sites More sharing options...
patmazuel Posted March 16, 2010 Author Share Posted March 16, 2010 and this is the code that did not work, so any ideas anyone ? OPPS sorry, I did not copy my latest try. define('HTTP_SERVER', 'http://www.mysite.fr'); define('HTTP_CATALOG_SERVER', 'http://www.mysite.fr'); define('HTTPS_CATALOG_SERVER', 'http://www.mysite.fr'); Link to comment Share on other sites More sharing options...
BryceJr Posted March 16, 2010 Share Posted March 16, 2010 Make these changes. define('HTTP_SERVER', 'http://www.mysite.fr'); define('HTTP_CATALOG_SERVER', 'http://www.mysite.fr'); define('HTTPS_CATALOG_SERVER', 'http://www.mysite.fr'); define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); Link to comment Share on other sites More sharing options...
patmazuel Posted March 17, 2010 Author Share Posted March 17, 2010 Ok, I made the changes , I still get the same error message but the path is now : /var/www/html/virtualdomains/XXXXX/mysite.fr/www/catalog/images/ Thanks for the help, I don't think I am far . . . The only change I needed to make was the define for the document_root, I had already changed the other defines. Make these changes. define('HTTP_SERVER', 'http://www.mysite.fr'); define('HTTP_CATALOG_SERVER', 'http://www.mysite.fr'); define('HTTPS_CATALOG_SERVER', 'http://www.mysite.fr'); define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); Link to comment Share on other sites More sharing options...
patmazuel Posted March 18, 2010 Author Share Posted March 18, 2010 Thanks for all the help, all is now working. Ok, I made the changes , I still get the same error message but the path is now : /var/www/html/virtualdomains/XXXXX/mysite.fr/www/catalog/images/ Thanks for the help, I don't think I am far . . . The only change I needed to make was the define for the document_root, I had already changed the other defines. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.