On the home page instead of displaying blocks displays:
We're sorry, an error has occurred while generating this content.
Any solution?
in debug.log
[2018-04-02 08:31:45] main.CRITICAL: Cannot read contents from file "/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/cs_CZ/mage/requirejs/mixins.min.js" Warning!file_get_contents(/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/cs_CZ/mage/requirejs/mixins.min.js): failed to open stream: No such file or directory {"exception":"[object] (Magento\\Framework\\Exception\\FileSystemException(code: 0): Cannot read contents from file \"/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/cs_CZ/mage/requirejs/mixins.min.js\" Warning!file_get_contents(/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/cs_CZ/mage/requirejs/mixins.min.js): failed to open stream: No such file or directory at /home/fsg/domains/wearon.pl/public_html/vendor/magento/framework/Filesystem/Driver/File.php:149)"} []
[2018-04-02 08:31:50] main.CRITICAL: Cannot read contents from file "/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/en_US/mage/requirejs/mixins.min.js" Warning!file_get_contents(/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/en_US/mage/requirejs/mixins.min.js): failed to open stream: No such file or directory {"exception":"[object] (Magento\\Framework\\Exception\\FileSystemException(code: 0): Cannot read contents from file \"/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/en_US/mage/requirejs/mixins.min.js\" Warning!file_get_contents(/home/fsg/domains/wearon.pl/public_html/pub/static/frontend/Mgs/claue/en_US/mage/requirejs/mixins.min.js): failed to open stream: No such file or directory at /home/fsg/domains/wearon.pl/public_html/vendor/magento/framework/Filesystem/Driver/File.php:149)"} []
Best Answer
Check your error logs what error it says some time this error occurs when there is change in db. run
php bin/magento setup:upgrade
andphp bin/magento cache:flush
enable / set developer mode ( if not already ) to set developer mode in your htaccess file. Uncomment
or / also you can run below command in CLI :
So you can see which section / block is causing the issue. Hope above steps will help to figure out the issue and help you to fix it.