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
5 REPLIES 5

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. Get Magento insight from
Magento 2 Blogs/Tutorial

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. Get Magento insight from
Magento 2 Blogs/Tutorial

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

This command apply but not working I have getting PHP Warning:  require(/var/www/html/XXXX/vendor/classyllama/module-avatax/registration.php): failed to open stream: No such file or directory in /var/www/html/XXXX/ve

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

Might be stating the obvious but,

do you remember that app/etc/env.php is excluded by default in .gitignore?