Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error when changing category image


sheikyerbouti

Recommended Posts

I'm trying to change the image associated with one of my categories (the image that appears on the right side of the main page when you select one of the items under the "category" box.

 

Here's the error message i get when i try to save my changes from the admin side of the site:

 

Warning: Unable to create 'mydomain.com/htdocs/catalog/images/category_hardware.gif': Permission denied in mydomain.com/htdocs/admin/categories.php on line 71

 

Warning: Cannot add header information - headers already sent by (output started at mydomain.com/htdocs/admin/categories.php:71) in mydomain.com/htdocs/admin/includes/functions/general.php on line 18

 

Here's what it says in the admin/categories.php file at line 71

copy($categories_image, $image_location);

 

And here's what it says in admin/includes/functions/general.php on line 18

header('Location: ' . $url);

 

Please help!!!

Thanks for any assistance.

 

-p

Link to comment
Share on other sites

If I remember correctly, the "Permission denied ..." error on uploading images is caused when you do not have the correct chmod settings on the images directory. Check to make sure that your /catalog/images and /admin/images directories have chmod settings of 775 or 777. Once the permissions work for the images, the other two errors will probably go away too.

 

CHMOD settings can usually be changed from the Admin interface via the Tools - File manager panel. Hope this helps.

>Insert witty comment here<

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...