gertrude Posted February 29, 2008 Posted February 29, 2008 Hi: What are the correct file paths for the file below. I keep getting error: Warning: dir(/var/www/files/catalog/images/): failed to open dir: No such file or directory in /home/waverlyt/public_html/catalog/admin/includes/filebrowser/index.php on line 193 Warning: filesize(): Stat failed for /var/www/files/catalog/images/ (errno=2 - No such file or directory) in /home/waverlyt/public_html/catalog/admin/includes/filebrowser/include.php on line 147 My image file is www.waverlytrinity.org/catalog/images My temp file is www. waverlytrinity.org/catalog/temp This file is in: catalog/admin/includes/filebrowser Nothing I've put in has changed the error message. Copy of file below (this is the original download) <?php // Specifies the path to your image folder. DON'T FORGET THE TRAILING SLASH! define("FILE_PATH","/var/www/files/catalog/images/"); // If your files are OUTSIDE of the web root, leave this blank. If // your files are INSIDE the web root, set this to the URI which // corresponds to FILE_PATH above. DON'T FORGET THE TRAILING SLASH! define("FILE_URI","/catalog/images/"); // If you wish to allow file uploads, specify the path into which // file uploads should be saved. Otherwise, leave this blank to disable // uploads. DON'T FORGET THE TRAILING SLASH! define("UPLOAD_PATH","/var/www/files/catalog/images/"); // Web path admin folder from web root folder. This is usually '/catalog/admin/' or '/admin/'. DON'T FORGET THE TRAILING SLASH! define('ADMIN_PATH', '/admin/'); // Web path to images folder from admin folder. LEAVE TRAILING SLASH OFF HERE! define('CATALOG_IMAGES_PATH_REL_TO_ADMIN', '../catalog/images'); // Webserver-writable temporary path for scratch space. // DON'T FORGET THE TRAILING SLASH! define("TEMP_PATH","/tmp/"); // Path to your ZIP application define("ZIP_BINARY","/usr/bin/zip"); ?> Thanks Much!
allwebnow Posted March 6, 2008 Posted March 6, 2008 I'm having similar issues with this but I get a "Invalid File" message when I try to preview an image. I swear it's because of my configuration path is incorrect or something like that. My current config file path looks like this: <?php // Specifies the path to your image folder. DON'T FORGET THE TRAILING SLASH! define("FILE_PATH","/home/user/public_html/catalog/images/"); That seems right but maybe it's supposed to be another path format. Regardless, this is a great contribution with lots of potential!
satish Posted March 6, 2008 Posted March 6, 2008 go to server info get script path or document root. That will help You in defining. DIR_FS_CATALOG. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
allwebnow Posted March 7, 2008 Posted March 7, 2008 Ok, i got the paths to work right so now the preview file downloads. THANKS Satish! But now I can't select an image to have it be added to a product. When I click "Select" next to the image, the scroll just pops to the top of the page and nothing happens anymore. This was just working yesterday. Also, would anyone have any idea why my images are so short ie. 5px height and normal width? Is there a place to make sure they are the right dimensions. I'm afraid it has something to do with GD or how the script is configured to communicating with my GD installation. If I get these 2 things figured out this contrib will be ready to go.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.