Jump to content

Original image is missing or empty error on image regeneration


Recommended Posts

Hi there, all of a sudden I can't seem to regenerate thumbnails. I get the following error:

 

187 errors
Original image is missing or empty (/home/arcademu/public_html/img/p/2/2/22.jpg)

 

The list goes on with every image.

 

I don't believe I've changed anything. Could it be a CHMOD issue? What folders relate to the process and what CHMOD should they be?

 

Thanks in advance.

Link to comment
Share on other sites

Hi Alexander, thanks for the speedy response.

 

They exist, but not in the folder structure that Prestashop generates with the htaccess (you know if you right click an image on the front end and the image url is something like /p/22/22-100 or something). It's just a bunch of images in the img folder. It's like it's getting mixed up with the url generated by the htaccess.

 

I did try 777 too, and I'm afraid that didn't work. Tbh that wouldn't be my ideal way of fixing it either as it's rather unsecure.

 

Thanks for your advice.

Link to comment
Share on other sites

Ok, Prestashop is weird.

 

For some reason, when I've done multiple CSV uploads, the images have reuploaded every time. So I had duplicates. Most of the duplicates then became broke somehow. So, instead of going manually one by one deleting each broken image, and setting the working one as cover image, I've gone into the DB, looked at ps_images table and deleted the duplicate broken image references as the broken images don't exist, which I reckon is causing the

Original image is missing or empty

error.

 

So, now, because the working images aren't set as cover images, the products aren't showing in the back office, yet the products are there in the front. Really strange. To test this, I guessed the back office URL for a product that doesn't exist there, but does on the front, and I got to edit the product fine. Made the working image a cover image, and now the product displays in the back office.

 

So, in the database, in ps_image, I set all positions of images to 1 (be careful if you have multiple images for one product), set them all to covers, using

UPDATE ps_image SET position = replace(position, "3", "1");

Then I had to go ps_image_shop and set them all to covers.

 

This then cured the products not getting displayed in the back office.

 

Anyway, I'm detailing it here just in case someone has the same problem in the future.

 

I'm going to mark this as partially solved as I'm convinced this is a bug.

Edited by S7 Media Ltd (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 5 weeks later...

Hi, I've just tried using the Move Images function, which has now created a bunch of sub folders. Turned off legacy file system. However, I still have the same problem.

 

I believe this might solve my issue. Where do I find the Move Images function in Prestashop 1.5.4.1? I don't see that function anywhere.

Link to comment
Share on other sites

  • 5 weeks later...
×
×
  • Create New...