1

Warning: include(/home/occ_vikas/occasionsjo.com/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/base/templates/root.phtml): failed to open stream: No such file or directory in /home/occ_vikas/occasionsjo.com/vendor/magento/framework/View/Result/Page.php on line 327

1
  • Check with developer mode, Is it working or not. If not execute composer update
    – S.P
    May 18 at 15:36

4 Answers 4

1

Try below commands:

php bin/magento setup:di:compile

rm -Rf var/view_proccessed rm -Rf var/cache rm -Rf pub/static/frontend
php bin/magento setup:static-content:deploy -f php bin/magento c:f or php bin/magento cache:flush

Try to check if you work on some custom module, and add a bit of explanation.

0

Simply deploy through CMD

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

it will fix your error.

0
rm -Rf var/view_proccessed
rm -Rf var/cache
rm -Rf pub/static/frontend    
php bin/magento setup:static-content:deploy -f

If it not works, tell us if all of madantory Magento 2 packages are installed.

And what's your Magento version ?

0

In addition to all suggestions try also doing:

composer install

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.