rhurd Posted November 30, 2004 Share Posted November 30, 2004 Hi there, i know there's a really easy solution to this but I've spent too many hours and too much time on the forum to waste anymore knowing someone has a few lines for me to resolve this. A site that works perfctly on my local machine does this when put live, In my admin I get this error when trying to upload a product image. Error: Destination does not exist. Error: Catalog images directory does not exist: /images/ I get this error when trying to upload files from product_info.php Error: destination does not exist. ANy ideas? should I paste my config settings here? Thanks Ryan Link to comment Share on other sites More sharing options...
ozcsys Posted November 30, 2004 Share Posted November 30, 2004 Hi there, i know there's a really easy solution to this but I've spent too many hours and too much time on the forum to waste anymore knowing someone has a few lines for me to resolve this. A site that works perfctly on my local machine does this when put live, In my admin I get this error when trying to upload a product image. Error: Destination does not exist. Error: Catalog images directory does not exist: /images/ I get this error when trying to upload files from product_info.php Error: destination does not exist. ANy ideas? should I paste my config settings here? Thanks Ryan <{POST_SNAPBACK}> Try changing the permissions on your image directory to 777. If that does not work you need to make sure the path in your configure.php file matches the actual location of the directory. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right?? Link to comment Share on other sites More sharing options...
rhurd Posted November 30, 2004 Author Share Posted November 30, 2004 Try changing the permissions on your image directory to 777. If that does not work you need to make sure the path in your configure.php file matches the actual location of the directory. <{POST_SNAPBACK}> The permissions are correct, but the config paths are wrong, I'm just not sure what does what. Could you check this out for me: includes/config define('HTTP_SERVER', 'http://www.cards4sa.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://www.cards4sa.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); 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/'); admin config: define('HTTP_SERVER', 'http://www.cards4sa.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.cards4sa.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', ''); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', ''); // absolute path required 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 . 'backups/'); Spot anything odd? Cheers Ryan Link to comment Share on other sites More sharing options...
rhurd Posted November 30, 2004 Author Share Posted November 30, 2004 Moved on a bit. Thanks for your help BTW. Played aorund with the /'s in the config files Now I get an error: Warning: move_uploaded_file(images/uploads/374santas helper.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\cards4sa.com\httpdocs\includes\classes\upload.php on line 114 Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php2E79.tmp' to 'images/uploads/374santas helper.jpg' in C:\Inetpub\vhosts\cards4sa.com\httpdocs\includes\classes\upload.php on line 114 Seems like a permission problem but every file and folder that's associated has chmod 777 set. Any further insight? Cheers Ryan Link to comment Share on other sites More sharing options...
♥Vger Posted November 30, 2004 Share Posted November 30, 2004 You still have things wrong in your config files e.g. define('DIR_FS_ADMIN', '/var/www/html/admin/'); // absolute path required - check to find out what your path is This (below) should be something like I have written, and is from includes/configure.php - and not from admin/includes/configure.php as you have it listed define('DIR_FS_CATALOG', '/var/www/html/'); and this, should be like so define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com'); Vger Link to comment Share on other sites More sharing options...
rhurd Posted November 30, 2004 Author Share Posted November 30, 2004 Thanks Rhea for looking at this I have now got my config settings as follows and have confirmed my server path with my host. ADMIN: define('HTTP_SERVER', 'http://www.cards4sa.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.cards4sa.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/Inetpub/vhosts/cards4sa.com/httpdocs/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/Inetpub/vhosts/cards4sa.com/httpdocs/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/Inetpub/vhosts/cards4sa.com/httpdocs/'); // absolute path required 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 . 'backups/'); CATALOG/INCLUDES: define('HTTP_SERVER', 'http://www.cards4sa.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.cards4sa.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.cards4sa.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', '/home/cards4sa/httpdocs/'); define('DIR_FS_CATALOG', 'c:/Inetpub/vhosts/cards4sa.com/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); But still get this when I try to upload an image from admin Warning: move_uploaded_file(/Inetpub/vhosts/cards4sa.com/httpdocs/images/xmas_wreath.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\cards4sa.com\httpdocs\admin\includes\classes\upload.php on line 94 Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\TEMP\php2F6E.tmp' to '/Inetpub/vhosts/cards4sa.com/httpdocs/images/xmas_wreath.jpg' in C:\Inetpub\vhosts\cards4sa.com\httpdocs\admin\includes\classes\upload.php on line 94 Cheers again Ryan Link to comment Share on other sites More sharing options...
rhurd Posted December 1, 2004 Author Share Posted December 1, 2004 I finally came right on this, hopefully it'll help others in future - so often people in this forum say "I finally came right , thanks for your help..." and then don't eloborate on what they did!!. I'm using smartftp to change my chmod permissions. I made sure the upload and config folder was 777 during the install and to allow uploading into that folder. Only when I looked at my permissions in plesk did it tell me otherwise - these were protected (not sure what the chmod was couldn't pick that up) all I know is I ticked the correct boxes and eveything was resolved. What a nightmare for such a simple task. Thanks again for all your help. Hopefully this comes in handy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.