cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot gather stats! Warning!stat(): stat failed

Cannot gather stats! Warning!stat(): stat failed

After updating to 2.4.2

Cannot gather stats! Warning!stat(): stat failed

6 REPLIES 6

Re: 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 Smiley Happy 

Re: Cannot gather stats! Warning!stat(): stat failed

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

 

Re: Cannot gather stats! Warning!stat(): stat failed

fixed it by removing pub/media/ in database on each item

 

Re: Cannot gather stats! Warning!stat(): stat failed

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?

Re: Cannot gather stats! Warning!stat(): stat failed

went item by item and deleted pub/media and just left the image name there I have not had a issue yet 

Re: Cannot gather stats! Warning!stat(): stat failed

catalog_category_entity_varchar  is where I changed it in database