After updating to 2.4.2
Cannot gather stats! Warning!stat(): stat failed
seems like your system does not support Magento_Csp
kindly try disabling Magento_Csp
php bin/magento module:disable Magento_Csp
and deploy again
php bin/magento setup:static-content:deploy -f
if this is resolved then you need to debug & check the folder permissions.
kindly Accept as a Solution if this works for you and give Kudos
Cannot gather stats! Warning!stat(): stat failed for /home/bsrtools/public_html/pub/media/catalog/category/pub///2flute_4.jpg
Exception in /home/bsrtools/public_html/vendor/magento/framework/Filesystem/Driver/File.php:95
still no luck driving me crazy
I am having the same issue, Please how did you fix it
I have tried re-indexing but not solved.
How did you remove pub/media in database? Is this safe?
went item by item and deleted pub/media and just left the image name there I have not had a issue yet