This is a discussion on https and images-Admin Tool Help Plz within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; This appears to be somewhat of a common problem since I've seen a few posts about https and images but ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| This appears to be somewhat of a common problem since I've seen a few posts about https and images but not really any solutions. My problem is occurring only in the admin tool when it is set to work in SSL. The page images contained in the admin/images directory load fine but the product images contained in the catalog images directory fail to load. This has to be a problem in the admin/includes/configure.php but I've spent the last four hours working on getting the page to look in the right location with little success. Below is the modified code from admin/includes/configure.php which has come the closest to getting the page to look in the right place. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://host10.ipowerweb.com/~pegasus-');// eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.pegasus-book.com'); define('HTTPS_CATALOG_SERVER', 'https://host10.ipowerweb.com/~pegasus-'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/pegasus-/public_html'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/pegasus-/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/pegasus-/public_html/catalog/'); // 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 NULL for productive servers define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', '*******'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' With this I can get the page to look for the product images in https://host10.ipowerweb.com/catalog/images. This is the correct path except it is looking in the root directory of the server and not our account on the server. The correct path should be https://host10.ipowerweb.com/~pegasus/catalog/images I've tried about every variation I can think of with results ranging from the entire page failing to load, to all graphics failing to load, to all graphics loading but without SSL. Any help you could give on this would be greatly appreciated. Below is the originally modified code which loads all graphics correctly but without the SSL: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.pegasus-book.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.pegasus-book.com'); define('HTTPS_CATALOG_SERVER', 'https://host10.ipowerweb.com/~pegasus-'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/pegasus-/public_html'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/pegasus-/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/pegasus-/public_html/catalog/'); // 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 NULL for productive servers define('DB_SERVER_USERNAME', '******'); define('DB_SERVER_PASSWORD', '*********'); define('DB_DATABASE', '****'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' Thanks in advance for any help/comments you may have. |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| I just had a look at your config, and I found this problem in the first config file. This is why it looks in the root dir. You haven't specified your home dir: Your file has this: Quote:
Quote:
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Admin tool will not work? | mclaudnic | osCommerce 2.2 Installation Help | 3 | 01-21-2005 04:05 PM |
| ADMIN TOOL | case510 | osCMax v1.7 Discussion | 3 | 12-25-2004 11:15 AM |
| Please help!!! Error in admin tool with Customer info | Rosina | osCommerce 2.2 Installation Help | 2 | 09-22-2004 04:22 PM |
| Admin tool install problem | bjrafferty | osCMax v1.7 Installation | 3 | 06-28-2004 09:03 PM |
| Losing images in admin with https | ozstar | osCommerce 2.2 Modification Help | 7 | 03-16-2003 09:14 PM |