kgb2f Posted December 20, 2002 Share Posted December 20, 2002 I'm having trouble configuring admin to work remotely from the catalog. I understand that there will be some limitations of this (unable to upload images etc) but that's not where the problem lies and I'm not sure if it's me or osC. My question is essentially: "How do I set DIR_WS_CATALOG and hence DIR_WS_CATALOG_LANGUAGES and DIR_WS_CATALOG_IMAGES?" If I understand things correctly, osCadmin uses these values to access the catalog files etc, in which case it needs to know the server on which the catalog resides. This is of course defined in HTTP_CATALOG_SERVER and has to be used in any href link to catalog files, BUT, the osCadmin code is inconsistent as to whether the server is included or not. IOW, in some places a tep-image call is set as follows:- tep-image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_LANGUAGES, ...etc) whereas in others it's:- tep-image(DIR_WS_CATALOG_LANGUAGES, ...etc) So however you set up admin configure.php it will be wrong somewhere. Even more odd is the line from manufacturers.php:- $image_location = DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG_IMAGES . $manufacturer['manufacturers_image']; which is a very odd combination of values that makes no sense to me (and certainly doesn't work). I can of course edit the code to correct these, but I try to avoid that as much as possible, at least not until I'm sure I'm not wrong. Can someone confirm whether the code is indeed wrong and suggest maybe the best cure, i.e. add the server constant into the code in all appropriate places, or take it out and include it into the definitions in configure.php? Link to comment Share on other sites More sharing options...
kgb2f Posted December 20, 2002 Author Share Posted December 20, 2002 Sorry about error in subject of original post. Used clipboard and didn't spot the mistake. BTW the problems I refer to are in 2.2. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.