Page 1 of 1

Image not saving in products

Posted: Wed Feb 29, 2012 7:53 am
by ronsattic
Ok so a newbie with this as just started to use opencart - going fine up till now. Upload image to product fine as normal, then save product but image disappears. This just started tonight - so any ideas , is this a bug ?

Re: Image not saving in products

Posted: Thu Mar 01, 2012 6:10 am
by ronsattic
now images won't upload ?

Re: Image not saving in products

Posted: Thu Mar 01, 2012 7:27 am
by ronsattic
Can someone please help on this have image loaded in product data field then when I save everything saves apart from image - this is now holding me up and doing my head in. Have 22 product items that saved fine now thats it so now what ?

Re: Image not saving in products

Posted: Thu Mar 01, 2012 10:30 pm
by ronsattic
still waiting for someone to answer this now :bash: , can't find a fix so will give a couple of days if nothing I will try some other program and take this one of sorry not got the time to mess about

Image not saving in products

Posted: Tue Mar 06, 2012 4:02 am
by amasenter
I cannot upload images and use them at ALL. Anytime I do, the Image Manager refuses to see the contents of the folder they are in - the images are still there, but it will simply show nothing for that folder. It doesn't matter if the images are JPG, TIF, or PNG. It doesn't matter if I upload the images via Image Manager, FTP, or web control panel. It doesn't matter if I process the images through Photoshop or PSP7. No matter what I do, uploading any image results in complete failure of the image manager to show any images at all in any folder I add images to. Deleting the images makes no difrent. The only non-demo images that work were all ones I uploaded a few weeks ago, and those work regardless of format. Can you help please.

Re: Image not saving in products

Posted: Tue Mar 06, 2012 9:41 am
by Vanderbilt80
ImageThank you for these replies!

Re: Image not saving in products

Posted: Tue Mar 06, 2012 10:55 am
by Daniel
version are u using?

also have you checked your permissions on the image directories?

and image cache.

Re: Image not saving in products

Posted: Sun Mar 11, 2012 7:04 am
by ronsattic
opencart update seems to have sorted this out now - no problems with images :)

Re: Image not saving in products

Posted: Sun Mar 11, 2012 11:04 pm
by straightlight
To properly update your images in database, assure to have all instances from the model relying on images:

Code: Select all

$this->db->escape($data['image'])
to read:

Code: Select all

$this->db->escape(html_entity_decode($data['image'], ENT_QUOTES, 'UTF-8'))
Note: This modification is only for database sanitizing. It does not have anything to do with folder permissions. v1.5.2.1 already uses this fix.

Re: Image not saving in products

Posted: Mon Jun 25, 2012 1:42 pm
by konservasi
What directory did I find that script?

Re: Image not saving in products

Posted: Mon Jun 25, 2012 6:53 pm
by straightlight
konservasi wrote:What directory did I find that script?
Which OC version are you using ?

Re: Image not saving in products

Posted: Sat Jul 14, 2012 7:15 pm
by sportyhabits
I facing the same problem, though everything was working earlier. I am using OC 1.5.1.3

I see product listed in database, I can see its entry. Product detail page is not shown but category is shown
http://www.sportyhabits.com/kids
When I click on product details are not shown. If I open and modify anything in the database and save then product image is not saved.
Any help is appreciated.

Re: Image not saving in products

Posted: Sun Jul 15, 2012 4:43 am
by straightlight
This issue has been corrected since OpenCart v1.5.2.1 release. It was a parsing problem during SQL insertion from the admin.

Re: Image not saving in products

Posted: Sat Sep 29, 2012 3:17 am
by le19555
It's great when someone posts a line of code to fix a problem but it would be nice to know what file and directory?? I cannot get product images to work at all on my products.

Re: Image not saving in products

Posted: Sun Sep 30, 2012 7:08 pm
by straightlight
- admin/model/catalog/category.php
- admin/model/catalog/manufacturer.php
- admin/model/catalog/product.php
- admin/model/sale/voucher_theme.php