cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Product Images

Missing Product Images

I am missing product images from sample data.
 

I have already successfully ran:

 

php -dmemory_limit=50G bin/magento sampledata:deploy 
php -dmemory_limit=50G bin/magento setup:upgrade
php -dmemory_limit=50G bin/magento setup:static-content:deploy -f

 

When I run:

 

php -dmemory_limit=50G bin/magento catalog:images:resize

 

It goes through some files:

 

 1/801 [>-----------------------]   0% < 1 sec 82.0 MiB   | /m/b/mb01-blue   2/801 [>-----------------------]   0% 3 secs 82.0 MiB    | /m/b/mb04-blac  3/801 [>------------------]   0% 5 secs 84.0 MiB  | /m/b/mb04-black-0_alt1  5/801 [>-----------------]   0% 10 secs 84.0 MiB  | /m/b/mb03-black-0_alt1 15/801 [>-----------------]   1% 41 secs 84.0 MiB  | /w/b/wb06-red-0_alt1.j 21/801 [>-----------------]   2% 1 min 84.0 MiB    | /u/g/ug07-bk-0_alt1.jp 26/801 [>-----------------]   3% 1 min 84.0 MiB    | /l/u/luma-yoga-brick.j 27/801 [>-----------------]   3% 1 min 84.0 MiB    | /l/u/luma-foam-roller.

 

But eventually I get the following error:

    File '/Applications/MAMP/htdocs/Magento_2/pub/media/catalog/product/m/h/mh01-gray_main_1.jpg' does not exist.

I am missing a lot of product images in: pub/media/catalog/product/

 

The images are in my phpmyadmin database and it is not a file permissions error.

 

How do I go about fixing this?

Thanks!

1 REPLY 1

Re: Missing Product Images

Hello @bryce_debilzan 

 

This is core Magento issue if image missing then it throw error, for more details please find below shared link:

 

https://github.com/magento/magento2/issues/22808

https://github.com/magento/magento2/issues/8145

 

 

Manish Mittal
https://www.manishmittal.com/