SilverMarc Posted October 28, 2007 Posted October 28, 2007 I have looked over the forums for this particular problem - I found similar issues, but this might be a bit different. Here is my very specific description, perhaps there's a very specific solution that someone already knows: My shop is running on osCommerce 2.2-MS2 I have an error at the top of the page in the Catalog Area of the Admin area: Error: Destination does not exist. Error: Catalog images directory does not exist: DIR_FS_CATALOG_IMAGES I tried creating an "images" folder in the "includes" directory (which is what it seems to asking for based on the config.php file) but it did not solve the problem. Is there a particular place other than the "includes" directory where the Admin area is trying to find this "images" directory? (And why didn't this directory automatically install with everything else?) Thank you if anyone can shed light on this. If not, I guess I can just start creating "images" directory everywhere until it works... But it seems so overly redundant to go at it this way, don't ya think? --Marc October 28, 2007 @ 10:44 AM N40° 46.565' W073° 58.756' Marc Silverman Web Development & Hosting New York City
germ Posted October 28, 2007 Posted October 28, 2007 Look in this file: /admin/includes/configure.php It should have a line similar to this: define('DIR_FS_CATALOG_IMAGES', DIR_FS_DOCUMENT_ROOT . 'images/'); It looks as if DIR_FS_CATALOG_IMAGES isn't being defined. The definition I posted would tell osC your "images" folder is in the root folder of the domain, I believe. 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 >
SilverMarc Posted October 28, 2007 Author Posted October 28, 2007 Look in this file: /admin/includes/configure.php It should have a line similar to this: define('DIR_FS_CATALOG_IMAGES', DIR_FS_DOCUMENT_ROOT . 'images/'); It looks as if DIR_FS_CATALOG_IMAGES isn't being defined. The definition I posted would tell osC your "images" folder is in the root folder of the domain, I believe. Thanks, I tried working on that a bit, but no change. The line in the configure.php (the one in the Admin area) file shows the "images" directory with the same syntax as the "boxes" "functions" "classes" etc. directories, and they are all inside of the "includes" directory. This is where it -seems- the "images" directory also wants to be, so I created it. It still fails. There is an "images" director in the root folder as well already. 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/'); Marc Silverman Web Development & Hosting New York City
germ Posted October 28, 2007 Posted October 28, 2007 So what is this defined as: DIR_FS_CATALOG :unsure: 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 >
SilverMarc Posted October 28, 2007 Author Posted October 28, 2007 So what is this defined as: DIR_FS_CATALOG :unsure: (I've included the code lines in between the found phrase) In the includes that's in the topmost store folder: define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); In the includes that's in the admin folder: define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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/'); --Marc October 28, 2007 @ 5:02 PM Marc Silverman Web Development & Hosting New York City
germ Posted October 28, 2007 Posted October 28, 2007 Copy/paste the code below: <?php // Include application configuration parameters require('includes/configure.php'); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body> <?php echo '<br>'; echo '<br>'; echo 'Value of DIR_FS_DOCUMENT_ROOT here -------------<br>'; $my_str = 'DIR_FS_DOCUMENT_ROOT'; $the_var = eval("echo " . $my_str . ";"); echo '<br>-------------------------------------------------<br>'; echo '<br>'; echo '<br>'; echo 'Value of DIR_FS_CATALOG here -------------<br>'; $my_str = 'DIR_FS_CATALOG'; $the_var = eval("echo " . $my_str . ";"); echo '<br>-------------------------------------------------<br>'; echo '<br>'; echo '<br>'; echo 'Value of DIR_WS_CATALOG here -------------<br>'; $my_str = 'DIR_WS_CATALOG'; $the_var = eval("echo " . $my_str . ";"); echo '<br>-------------------------------------------------<br>'; echo '<br>'; echo '<br>'; echo 'Value of DIR_FS_CATALOG_IMAGES here -------------<br>'; $my_str = 'DIR_FS_CATALOG_IMAGES'; $the_var = eval("echo " . $my_str . ";"); echo '<br>-------------------------------------------------<br>'; echo '<br>'; echo '<br>'; ?> </body> </html> Save it as showme.php in your /admin folder on your web site. Then access it thru your browser: http://www.yoursite.com/showme.php It will output all the values we need to arrive at DIR_FS_CATALOG_IMAGES. Copy/paste the contents of the browser output into your next post. I'm not seeing anything jumping out at me. :blink: 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 >
SilverMarc Posted October 28, 2007 Author Posted October 28, 2007 Copy/paste the code below: Save it as showme.php in your /admin folder on your web site. Then access it thru your browser: http://www.yoursite.com/showme.php It will output all the values we need to arrive at DIR_FS_CATALOG_IMAGES. Copy/paste the contents of the browser output into your next post. I'm not seeing anything jumping out at me. :blink: Results: Value of DIR_FS_DOCUMENT_ROOT here ------------- DIR_FS_DOCUMENT_ROOT ------------------------------------------------- Value of DIR_FS_CATALOG here ------------- /home/mitchell/public_html/osc/admin/ ------------------------------------------------- Value of DIR_WS_CATALOG here ------------- DIR_WS_CATALOG ------------------------------------------------- Value of DIR_FS_CATALOG_IMAGES here ------------- DIR_FS_CATALOG_IMAGES ------------------------------------------------- Thanks, I greatly appreciate your ongoing efforts on this one. --Marc October 28, 2007 @ 7:45 PM Marc Silverman Web Development & Hosting New York City
♥Vger Posted October 29, 2007 Posted October 29, 2007 A much simpler solution would have been to create a text document on your Desktop, rename it to cwd.php and put this code in it: <?php $p = getcwd(); echo $p; ?> By uploading this to the root of your website and going to the file via your browser the DIS_FS pathway would be printed out on your screen The DIR_FS_ROOT and DIR_FS_CATALOG (if the site is in the osc folder) are: define('DIR_FS_CATALOG', '/home/mitchell/public_html/osc/'); define('DIR_FS_DOCUMENT_ROOT', '/home/mitchell/public_html/osc/'); and DIR_FS_ADMIN is: define('DIR_FS_ADMIN', '/home/mitchell/public_html/osc/admin/'); Now that you know what the DIR_FS pathways are you need to put the relevant DIS_FS pathways into the includes/configure.php and admin/includes/configure.php files. Vger
SilverMarc Posted October 29, 2007 Author Posted October 29, 2007 A much simpler solution would have been to create a text document on your Desktop, rename it to cwd.php and put this code in it: <?php $p = getcwd(); echo $p; ?> Vger's signature contained a link to the "easy install" for the osCommerce Store, so I decided it couldn't hurt to simply try a full reinstall based on those easy instructions. And it worked! Many thanks to germ who I know really did some thinking on this one - I'll do my best to pass the good deed forward if I can't find a way to return the favor to you! Thanks to you both for the quick responses - the problem has been solved with your combined help. --Marc October 28, 2007 @ 10:01 PM N40° 46.565' W073° 58.756' Marc Silverman Web Development & Hosting New York City
beachie99 Posted October 30, 2007 Posted October 30, 2007 Many thanks for the cwd.php code. It worked great and I have my catalog files all working without errors. Thanks again. Ron
Recommended Posts
Archived
This topic is now archived and is closed to further replies.