Warning: include(Mage/Core/Model/App.php): failed to open stream: No such file or directory in /var/www/html/sitename/lib/Varien/Autoload.php on line 93
Warning: include(): Failed opening 'Mage/Core/Model/App.php' for inclusion (include_path='/var/www/html/sitename/app/code/local:/var/www/html/sitename/app/code/community:/var/www/html/sitename/app/code/core:/var/www/html/sitename/lib:.:/usr/share/php:/usr/share/pear') in /var/www/html/sitename/lib/Varien/Autoload.php on line 93
Fatal error: Class 'Mage_Core_Model_App' not found in /var/www/html/sitename/app/Mage.php on line 589
I have tried vhost also, but getting same errors.
Have you tried to update dependencies with composer?
cd /var/www/html/sitename/
composer update
Could also be useful to check db settings table for any absolute roots.
Related
I have error when I upload my personal website. This is the error that I get:
Warning:
include(/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php): failed to open stream: No such file or directory in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(): Failed opening '/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php): failed to open stream: No such file or directory in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(): Failed opening '/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php): failed to open stream: No such file or directory in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(): Failed opening '/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php): failed to open stream: No such file or directory in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269 Warning: include(): Failed opening '/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/thefourpobu/public_html/tep/system/core/Exceptions.php on line 269
This got me too. From the CodeIgniter upgrade doc:
Step 8: Replace your error templates
In CodeIgniter 3.0, the error templates are now considered as views and have been moved to the application/views/errors directory.
Furthermore, we’ve added support for CLI error templates in plain-text format that unlike HTML, is suitable for the command line. This of course requires another level of separation.
It is safe to move your old templates from application/errors to application/views/errors/html, but you’ll have to copy the new application/views/errors/cli directory from the CodeIgniter archive.
You just need to copy over the errors folder provided in ver 3.0 to your views folder.
i am facing below errors while installing live site backup on local workstation. I imported database backup too in mysql.
Renamed "local.xml.sample" to "local.xml".
renamed cache folder.
But yet it gives below error.
1. Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in C:\wamp\www\app\Mage.php on line 50
2. Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='C:\wamp\www\app\code\local;C:\wamp\www\app\code\community;C:\wamp\www\app\code\core;C:\wamp\www\lib;.;C:\php\pear') in C:\wamp\www\app\Mage.php on line 50
3. Warning: include(Mage\Core\Model\App.php): failed to open stream: No such file or directory in C:\wamp\www\lib\Varien\Autoload.php on line 93
4. Warning: include(): Failed opening 'Mage\Core\Model\App.php' for inclusion (include_path='C:\wamp\www\app\code\local;C:\wamp\www\app\code\community;C:\wamp\www\app\code\core;C:\wamp\www\lib;.;C:\php\pear') in C:\wamp\www\lib\Varien\Autoload.php on line 93
5. Fatal error: Class 'Mage_Core_Model_App' not found in C:\wamp\www\app\Mage.php on line 670
The most probable answer - you have incorrect hierarchy of your project files, ie you didn't copy whole project to your workstation. You need to check if app\code\core\Mage\Core folder is present and contains all the mentioned files.
During deployment of a Magento site I got the following warning and error:-
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxx/subdomain/stage/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/xxx/subdomain/stage/app/code/local:/home/xxx/subdomain/stage/app/code/community:/home/xxx/subdomain/stage/app/code/core:/home/xxx/subdomain/stage/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/subdomain/stage/app/Mage.php on line 50
Warning: include(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxx/subdomain/stage/app/code/core/Mage/Core/functions.php on line 68
Warning: include(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/xxx/subdomain/stage/app/code/local:/home/xxx/subdomain/stage/app/code/community:/home/xxx/subdomain/stage/app/code/core:/home/xxx/subdomain/stage/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/subdomain/stage/app/code/core/Mage/Core/functions.php on line 68
Fatal error: Class 'Varien_Autoload' not found in /home/xxx/subdomain/stage/app/Mage.php on line 53
I have already set permission to 777 and set the include_path correctly and there is lib folder inside includes too but its not working.
Please suggest how to solve this error. Thank you.
I keep getting this kind of error since I moved Magento from my server to clients server:
exception 'Zend_Validate_Exception' with message 'Validate class not found from basename 'NotEmpty'' in /lib/Zend/Validate.php:244
Caused by:
Warning: include(NotEmpty.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 93
This one I get when I try to finish my order.
I got one similar yesterday when trying to create an attribute.
Warning: include(StringLength.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 93
I checked for permissions and all the files referred by the error have 777 and all the folders from root to those files have also 777.
Any thoughts?
EDIT:
I followed the hint from the comments and I managed to find the path of the file causing the error. The NotEmpty.php is called from the root of Magento though it should have been in /lib/Zend/Validate/.
Any idea how to get the right path?
This is my complete error message:
Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 49
Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:') in /usr/bin/phpunit on line 49
I am using MacOsX10.8 and MAMP. I get this Warning running "./bin/behat ..." in a Symfon2.3 application.
Any suggestion?
Do it for the file being called on line 49
First check whether the file exist.
Next Check for read permissions on that file and its folders