chycco Posted July 31, 2003 Posted July 31, 2003 Hi everybody i don't understand why i can't see images of products in the admin and in the catalog. When I click with the right button of the mouse on a image (well...i see the x image) and i see the proprieties of the image...i see the perfect root. So...what is the problem? I copy and past the code of my configure.php of the admin... ----------------------------------------------------------------------------- define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mysite.com'); define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/italiang/public_html'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/originalgifts/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/originalgifts/'); 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_FLAGS', DIR_WS_IMAGES . 'flags/'); ---------------------------------------------------------------------------- anybody can help me please?
Guest Posted August 1, 2003 Posted August 1, 2003 Did you set the permissions for the image directories to 777 ?
chycco Posted August 1, 2003 Author Posted August 1, 2003 yes, all permissions 777 in all folder, but nothing. I'm sure it's not depend from configure.php becacuse I have installed a parallel shop (where images work!) in the same server and domain, and i have copied the code. Please, anybody knows a possible reason?
chycco Posted August 1, 2003 Author Posted August 1, 2003 maybe i have found one way, but i need your help.... in the parallel shop, i have seen that when i use a image of the default shop, and i create a new product with the same image, i have one error: Warning: move_uploaded_file(/home/italiang/public_html/original-gifts/images/dvd/theres_something_about_mary.gif): failed to open stream: Permission denied in /home/italiang/public_html/original-gifts/admin/includes/functions/general.php on line 789 Warning: move_uploaded_file(): Unable to move '/tmp/phpt7I6LU' to '/home/italiang/public_html/original-gifts/images/dvd/theres_something_about_mary.gif' in /home/italiang/public_html/original-gifts/admin/includes/functions/general.php on line 789 the line 789 is: $size = sizeof($month_abbr); anybody can help us? thanx in advance
chycco Posted August 1, 2003 Author Posted August 1, 2003 sorry...the line 789 is: move_uploaded_file($filename['tmp_name'], $target);
chycco Posted August 1, 2003 Author Posted August 1, 2003 Now it works! I have put CHMOD 777 to catalog/include/functions/general.php admin/include/functions/general.php then, i don't upload images with ftp but with the browser...and now it work! :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.