Magento – Unable to retrieve deployment version of static files from the file system

magento2static-content

I asked my hosting site to update PHP so that I could configure Payzone to Magento 2. It seems that it may have upset something as when I try to go on the website, magento admin or File zilla I get an error message or Unable to retrieve deployment version of static files from the file system.

I've asked the hosting site to take a look, but they don't think that it's a problem at their end. Does anyone have any idea how I might fix this.

Best Answer

Seems you have converted your store from the developer mode to the production mode and now the system is not able to create the folders and files automatically.

For the same, try below steps

php bin/magento cache:clean

php bin/magento cache:flush

remove everything(not .htacess) from pub/static, var, generated

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

php bin/magento setup:static-content:deploy en_AU --exclude-theme Magento/luma --exclude-theme Magento/blank -f

Here you go, check your frontend and admin, it should work like it should be. Enjoy

Related Topic