colliewonder Posted June 8, 2009 Posted June 8, 2009 I had to move my store to a new hosting server and after a couple of days of trial and error changing of files etc I eventually have it up and running again. with one or two issues to iron out. my store is "bolted on" to an existing site and is uploaded to the catalog folder. I am left with one problem. when I log into the admin section to add / view / edit products on the it will not display the images. all I see is a red X where the image should be. all the images are displaying correctly on the catalog side. Interestingly if I look at the properties (right click) of an image on the catalog side it tells me its location is www.mydomain.com/catalog/images if I look at the properties (right click) of an image in the admin section (or the x where the image should be displayed) it gives it's location as www.mydomain.com/images with no sign of the catalog folder level?? even if I add a new product with a new image it is uploaded to the correct folder i.e mydomain.com/catalog/images I previously had the store installed on the root of the hosting server (no catalog folder) I have looked at various posts on this issue and none of the fixes seem to work. Here is my catalog/admin/includes/configure.php file <?php define('HTTP_SERVER', 'http://www.dcommercials.com/catalog'); define('HTTP_CATALOG_SERVER', 'HEADING_TITLE'); define('HTTPS_CATALOG_SERVER', 'https://www.dcommercials.com/catalog'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'D:/hshome/dyc/dyc.u99.hosting365.ie/catalog'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', 'D:/hshome/dyc/dyc.u99.hosting365.ie/catalog/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', 'D:/hshome/dyc/dyc.u99.hosting365.ie/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 . 'admin/backups/'); define('DB_SERVER', 'xxxxxxxxxxxxxxxx'); define('DB_SERVER_USERNAME', 'xxxxxxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxxxxx'); Any help with this would be greatly appreciated.
steve_s Posted June 8, 2009 Posted June 8, 2009 change it to this below define('HTTP_SERVER', 'http://www.dcommercials.com'); define('HTTP_CATALOG_SERVER', 'http://www.dcommercials.com''); define('HTTPS_CATALOG_SERVER', 'https://www.dcommercials.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'D:/hshome/dyc/dyc.u99.hosting365.ie/catalog'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', 'D:/hshome/dyc/dyc.u99.hosting365.ie/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', 'D:/hshome/dyc/dyc.u99.hosting365.ie/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 . 'admin/backups/'); define('DB_SERVER', 'xxxxxxxxxxxxxxxx'); define('DB_SERVER_USERNAME', 'xxxxxxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxxxxx');
Nullachtfuffzehn Posted June 8, 2009 Posted June 8, 2009 Put the correct value for DIR_WS_CATALOG in there and you should be good to go.
colliewonder Posted June 8, 2009 Author Posted June 8, 2009 Put the correct value for DIR_WS_CATALOG in there and you should be good to go. I tired the fixes suggested but no joy unfortunately. what value should I have in for DIR_WS_CATALOG. i have tried catalog , images etc but no good i'm afraid. when I tried the first fix above it threw up an error and would not display the admin login page. I guess i'll try again tomorrow, my brain is gone to sleep from it at this stage!!!
Nullachtfuffzehn Posted June 8, 2009 Posted June 8, 2009 Steve has already posted the solution. I just wanted you to think about the principle of OSC paths. Anyways, it should be solved.
colliewonder Posted June 11, 2009 Author Posted June 11, 2009 I've tried again and the fix posted by Steve above works perfectly. I guess I was just too tired the last time and made a simple mistake somewhere along the line. Anyway thanks very much guys for your assistance. I was playing with this for days before I posted. For a complete novice like myself it is great that there is such a willing community of pros out there to lend a hand. thanks again. C
Recommended Posts
Archived
This topic is now archived and is closed to further replies.