I have magento CE 2.2.2 I have a problem when i try to enable production mode.
Store give me this error:
Unable to retrieve deployment version of static files from the file system.
If i run:
php bin/magento setup:static-content:deploy -f
I have the sample problem. But if i try to add it_IT , my default language .
php bin/magento setup:static-content:deploy -f it_IT
Works! But when i run:
php bin/magento setup:upgrade
The problem returns to the origin : Unable to retrieve deployment version of static files from the file system.
-
1so do you get this error when running setup:upgradeRaj Mohan R– Raj Mohan R2019年04月29日 11:53:39 +00:00Commented Apr 29, 2019 at 11:53
-
Yes. When i enable production mode.KernelPaniC– KernelPaniC2019年04月29日 11:54:35 +00:00Commented Apr 29, 2019 at 11:54
-
Can you please check dev/static/sign value in core config data tableRaj Mohan R– Raj Mohan R2019年04月29日 11:55:55 +00:00Commented Apr 29, 2019 at 11:55
-
ibb.co/2t81spDKernelPaniC– KernelPaniC2019年04月29日 12:00:02 +00:00Commented Apr 29, 2019 at 12:00
-
Can you please switch its value to 0 and do a checkRaj Mohan R– Raj Mohan R2019年04月29日 12:04:41 +00:00Commented Apr 29, 2019 at 12:04
1 Answer 1
Please comment properly in /home/gyps2440/public_html/app/design/frontend/TemplateMonster/theme066/Magento_Cms/layout/default.xml line no 10
<!-- <referenceBlock name="privacy-policy-link"> -->
Disable the module TemplateMonster/SiteMaintenance/ as it is creating issues in removing maintenance flag. Remove the maintenance flag manually.
Run the below code to set the proper file permissions
find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
sudo chown -R :<web server group> .
chmod u+x bin/magento
If you are running setup:upgrade deploy the content. So you need to deploy separately for the Italian store
php bin/magento setup:static-content:deploy it_IT