TriedAndTested Posted February 24, 2008 Posted February 24, 2008 Hi, I moved the /catalog dir up a level so it can be accessed at domain.com rather than domain.com/catalog. Admin still shows images ok but the front page no longer shows images. I have changed the 2 config*.php files to change the references to catalog to '' When I look at properties for a picture it gives one such image path as http://domain.com/catalog/images/infobox/corner_left.gif still referencing catalog! Any ideas? Thanks, Billy
♥FWR Media Posted February 24, 2008 Posted February 24, 2008 catalog/includes/configure.php make sure the following lines look as these do .. define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
TriedAndTested Posted February 24, 2008 Author Posted February 24, 2008 Hi Robert, Tried that, still no joy though. my configure.php now looks like this , note domain.com isn't the real one. hmm, it worked before I moved it up a level! // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.domain.com'); define('HTTPS_COOKIE_DOMAIN', ''); 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', 'H:/hshome/billywalker/domain.com/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection // next lines removed for database security define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> catalog/includes/configure.php make sure the following lines look as these do .. define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/');
♥FWR Media Posted February 24, 2008 Posted February 24, 2008 PM me a site link Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
♥FWR Media Posted February 24, 2008 Posted February 24, 2008 Ok the problem is the follwing .. view source to see it yourself .. <base href="http://walkerspcs.co.uk/catalog/"> As it is http this is set by DIR_WS_HTTP_CATALOG in mysitecom/includes/configure.php If you say that DIR_WS_HTTP_CATALOG is set as .. define('DIR_WS_HTTP_CATALOG', '/'); Then I'm stumped as this just can't happen. Unless of course <base href="http://walkerspcs.co.uk/catalog/"> is hardcoded in your files .. e.g. index.php. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
TriedAndTested Posted February 24, 2008 Author Posted February 24, 2008 Thanks, i've looked at index.php I can't see it hardcoded anywhere. Oscommerce was installed through my hosts "easy setup utility". I know my host has a link on my control panel that points eShop at /catalog still, but they've told me that it can't be changed. Other than that I can't think of anything. I'll keep looking. best regards, Billy Ok the problem is the follwing .. view source to see it yourself .. <base href="http://walkerspcs.co.uk/catalog/"> As it is http this is set by DIR_WS_HTTP_CATALOG in mysitecom/includes/configure.php If you say that DIR_WS_HTTP_CATALOG is set as .. define('DIR_WS_HTTP_CATALOG', '/'); Then I'm stumped as this just can't happen. Unless of course <base href="http://walkerspcs.co.uk/catalog/"> is hardcoded in your files .. e.g. index.php.
germ Posted February 24, 2008 Posted February 24, 2008 This is a real shot in the dark, but check here: /includes/local/configure.php If that file exists, osC may be using info from it. If it's there, see what it says... If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
TriedAndTested Posted February 24, 2008 Author Posted February 24, 2008 Hi, I found it! Turns up in includes/local/configure.php. You were right! Thanks for all your help. kind regards, Billy Walker Thanks,i've looked at index.php I can't see it hardcoded anywhere. Oscommerce was installed through my hosts "easy setup utility". I know my host has a link on my control panel that points eShop at /catalog still, but they've told me that it can't be changed. Other than that I can't think of anything. I'll keep looking. best regards, Billy
♥FWR Media Posted February 24, 2008 Posted February 24, 2008 Hi, I found it! Turns up in includes/local/configure.php. You were right! Thanks for all your help. kind regards, Billy Walker Nice catch germ, I've never come across that situation myself :thumbsup: Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
germ Posted February 24, 2008 Posted February 24, 2008 Sometimes I get lucky. :lol: In application_top is says: // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) include('includes/local/configure.php'); So, anytime the normal configure files seem to be askew, it's good to go looking in the local folder... ;) If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.