cancel
Showing results for 
Search instead for 
Did you mean: 

Broken Page after switching to production mode

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Broken Page after switching to production mode

Hi,

 

I hope someone can point me into the right direction:

Since I switched my Magento 2.2 to production mode, the pages are broken, it seems that no template is used. I use Smartwave/porto.

It seems that Porto is using two different localisations (de_DE and en_US).

 

Page looks like this:

Unbenannt.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Broken Page after switching to production mode

Found the soultion *aargh*

 

https://magento.stackexchange.com/questions/160474/magento2-wrong-path-of-static-contents

Store -> Configuration -> Developer -> Static Files Settings -> Sign Static Files

View solution in original post

6 REPLIES 6

Re: Broken Page after switching to production mode

Hi @kornblumenapo,

 

 

Have you reviewed the directory permissions on your server? Specifically, the /pub and /var folders.

 

Here you have the official documentation about the directory permissions in Magento 2:

http://devdocs.magento.com/guides/v2.2/install-gde/prereq/file-system-perms.html

 

 

Best regards.

Gabriel

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.

Re: Broken Page after switching to production mode

Dear Gabriel,

 

tried that several times without any changes. Smiley Sad

Re: Broken Page after switching to production mode

So far I found, that there are references to http://wwww.meineapo.at/pub/static/version1521011805/frontend/Smartwave/porto/de_DE/mage/calendar.cs...

 I get a 404 for eg. this file

Actually there are no directories in the de_DE directory, but all files referred to are in en_US.

Any idea how this could happen and why de_DE is empty and not fully compiled?

 

Re: Broken Page after switching to production mode

Found the soultion *aargh*

 

https://magento.stackexchange.com/questions/160474/magento2-wrong-path-of-static-contents

Store -> Configuration -> Developer -> Static Files Settings -> Sign Static Files

Re: Broken Page after switching to production mode

There is no Store -> Configuration -> Developer

Re: Broken Page after switching to production mode

Try this: bin/magento setup:static-content:deploy de_DE

To enable Store -> Configuration -> Developer you need to set the store to developer mode

bin/magento deploy:mode:set developer