Magento Forum

   
Error when adding a product image
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Playa del Rey
 

I am not able to add product images the media folder is chmod 777.

If I add a product and just let it use the default image, it works: http://----.com/test.html

If I add a product and use MY OWN image it gives me a bunch of errors: http://www.----/gnld-carotenoid-complex.html

Any help would be great appreciated.

Thanks,
Philip

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

hm, just a random guess: did you chmod recursively?

chmod -R 777

 
Magento Community Magento Community
Magento Community
Magento Community
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Playa del Rey
 

Yep, I did:
chmod -R 777 media
chmod -R 777 var
chmod -R 777 app/etc

I’m also having the blank page problem - have to refresh 3 times sometimes to make it load - other times it loads fine.

Thanks,
Philip

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

Try chmod -R 777 your root directory just to check if this would solve it. You can than restrict rights as you go.
Do you have caching enabled? Do you just get a blank screen? Did apache write anything to his logs?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Playa del Rey
 

Yes, I have cacheing enabled. Should it not be?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Playa del Rey
 

The blank pages have stopped for now, but when I use any image other than the default placeholder I get errors still: http://www.martens-health.com/gnld-carotenoid-complex.html

 
Magento Community Magento Community
Magento Community
Magento Community
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Playa del Rey
 

I’ve figured out the issue with the images.

If you get this error: “Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error” then check the JPEG files. If they are saved in CMYK format (instead of RGB) then GD will fail to load them (tested with GD 2.0.12)

I did that and once my images are RGB, it works. The thing is there is a work around, that really needs to be in the code.

Thanks,
Philip

 
Magento Community Magento Community
Magento Community
Magento Community
 
dwdonline
Member
 
Avatar
Total Posts:  56
Joined:  2008-03-06
Playa del Rey
 

I’m getting blank pages again. Any ideas? For some reason, if I stop and start httpd the pages are fine for a while. Then it goes back to getting blank pages after a day or so.  Any help or ideas would be great.

Thanks,
Philip

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top