cancel
Showing results for 
Search instead for 
Did you mean: 

failed to open stream: No such file or directory in....

failed to open stream: No such file or directory in....

Hi all,

 

After i enter php bin/magento setup:upgrade, my site got below error and not accessible.

How to solve this problem?

 

thanks!

 

Warning: include(/home/admin/web/tiesecret.com/public_html/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/admin/web/tiesecret.com/public_html/vendor/magento/framework/View/Result/Page.php on line 326
3 REPLIES

Re: failed to open stream: No such file or directory in....

Just remove var folder content from your site and give full permission for var folder to sort out your issue.

give full permission to var folder, 

chmod -R 0777 var

after delete var folder content run upgrade command again.

please let me know if you have any query.

 

If Issue Solved, Click Kudos/Accept As solutions.

Re: failed to open stream: No such file or directory in....

how to remove var content in command? Thanks!

Re: failed to open stream: No such file or directory in....

You can use below command to remove var content,

 

rm -rf var/
If Issue Solved, Click Kudos/Accept As solutions.