- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: failed to open stream: No such file or directory in....
how to remove var content in command? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: failed to open stream: No such file or directory in....
You can use below command to remove var content,
rm -rf var/
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?