I installed fresh magento 1.9.2.2. While installing and after it instaled, whenever i try my domain url the same error have been coming like shown below.
Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/website/public_html/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/website/php') in /home/website/public_html/app/Mage.php on line 50
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/website/public_html/app/Mage.php on line 51
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/website/php') in /home/website/public_html/app/Mage.php on line 51
Fatal error: Class 'Varien_Autoload' not found in /home/website/public_html/app/Mage.php on line 54
So I used
http://xxx.xxx.xxx.xxx [my ip address]/~website/
then in installtion I changed my path to my domain name. Its not working.
Anyone know any solution. Please help me.
I think that your problem caused by the .htaccess file. Try to rename it to test this idea or check rewrite/redirect rules.
Related
I've been searching and searching for solutions but I still can't figure out why is this happening. I have another project with the same setup but it doesnt give this error. Runs fine in local but throws error like this in scrutinizer
Warning Error: include(PHPUnit/Autoload.php): failed to open stream:
No such file or directory in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
2018-01-19 07:45:23 Warning: include(PHPUnit/Autoload.php): failed to
open stream: No such file or directory in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
Warning Error: include(): Failed opening 'PHPUnit/Autoload.php' for
inclusion
(include_path='/home/scrutinizer/build:/home/scrutinizer/build/lib:.:/home/scrutinizer/.phpenv/versions/7.1.12/pear:/home/scrutinizer/.phpenv/versions/7.1.12/share/pyrus/.pear/php')
in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
2018-01-19 07:45:23 Warning: include(): Failed opening
'PHPUnit/Autoload.php' for inclusion
(include_path='/home/scrutinizer/build:/home/scrutinizer/build/lib:.:/home/scrutinizer/.phpenv/versions/7.1.12/pear:/home/scrutinizer/.phpenv/versions/7.1.12/share/pyrus/.pear/php')
in
[/home/scrutinizer/build/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php,
line 162]
Error: Please install PHPUnit framework v3.7 (http://www.phpunit.de)
#0 /home/scrutinizer/build/lib/Cake/Console/ShellDispatcher.php(218):
As you already said that you didn't experienced any problem with previous setup.
I suggest you please check the absolute path of the script.
/home/scrutinizer/build/lib/Cake/TestSuite
I am talking about this path.
and tell if you have solved out the problem.I can't tell more than this as you have provided the error only.If I need to help you more then you should provide more details.
Good luck
Warning: require_once(book/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\book\book.php on line 48
Fatal error: require_once(): Failed opening required 'book/autoload.php' (include_path='C:\xampp\php\PEAR;;/book;/book/classes;/book/pear/PEAR') in C:\xampp\htdocs\book\book.php on line 48
I added this to the file:
require_once('book/autoload.php');
include_path('C:\xampp\php\PEAR;;/book;/book/classes;/book/pear/PEAR');
This is very rudimentary, but it's still not working. Have mercy, this is my first php project.
You can try this
require_once('book/autoload.php');
and must check that your folder path is correct.
I'm trying to install magento 1.x on my centos machine. After dowloading and extracting magento i faced this errrors
Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/xxxx/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/php') in /home/xxxx/app/Mage.php on line 50
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxxx/app/Mage.php on line 51
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/php') in /home/xxxx/app/Mage.php on line 51
Fatal error: Class 'Varien_Autoload' not found in /xxxx/app/Mage.php on line 54
I tried to run php shell/compiler.php compile the the errors disappeared and the installation page appeared but without any next or back buttons.
How can i fix this issue?
Make sure on the new server , you have permissions to open and rewrite files. some mangento extensions require full permissions before installations.
I have seen this question asked and answered many times, but I can't seem to get a solution for myself
Here is my basic folder structure:
http://localhost/cms/
To grab all my code I have a utilities file located here:
http://localhost/cms/includes/utilities.inc.php
and within that file I have requires()s to include classes, as such:
require('classes/Post.php');
require('classes/User.php');
require('classes/Comments.php');
require('classes/Category.php');
when I try and include my http://localhost/cms/includes/utilities.inc.php file into the following directory it doesn't work! http://localhost/cms/admin/
when I try I get this error:
Warning: require(classes/Post.php): failed to open stream: No such file or directory in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Fatal error: require(): Failed opening required 'classes/Post.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
When Using Absolute Paths In My Utility File:
require('http://localhost/cms/classes/Post.php');
require('http://localhost/cms/classes/User.php');
require('http://localhost/cms/classes/Comments.php');
require('http://localhost/cms/classes/Category.php');
I get the following error:
Warning: require(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Warning: require(http://localhost/cms/classes/Post.php): failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
Fatal error: require(): Failed opening required 'http://localhost/cms/classes/Post.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cms\includes\utilities.inc.php on line 12
How can I get a system that will link properly (preferably WITHOUT anything PEAR related)?
Hey my Magento site crash after I enable compilation, I cant login to the site, so I am trying to disable it from the back end (config.php) but its disable
define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
any ideas?
Following are the error codes
Warning: include_once(/home3/webcapt/public_html/campusclub/includes/src/Mage_Core_functions.php) [function.include-once]: failed to open stream: No such file or directory in /home3/webcapt/public_html/campusclub/app/Mage.php on line 36
Warning: include_once() [function.include]: Failed opening '/home3/webcapt/public_html/campusclub/includes/src/Mage_Core_functions.php' for inclusion (include_path='/home3/webcapt/public_html/campusclub/includes/src:.:/usr/lib/php') in /home3/webcapt/public_html/campusclub/app/Mage.php on line 36
Warning: include_once(/home3/webcapt/public_html/campusclub/includes/src/Varien_Autoload.php) [function.include-once]: failed to open stream: No such file or directory in /home3/webcapt/public_html/campusclub/app/Mage.php on line 37
Warning: include_once() [function.include]: Failed opening '/home3/webcapt/public_html/campusclub/includes/src/Varien_Autoload.php' for inclusion (include_path='/home3/webcapt/public_html/campusclub/includes/src:.:/usr/lib/php') in /home3/webcapt/public_html/campusclub/app/Mage.php on line 37
Fatal error: Class 'Varien_Autoload' not found in /home3/webcapt/public_html/campusclub/app/Mage.php on line 53
To disable the compilation via code just rename the includes diectory from magento root folder & try to login hope this will help you.
Its may be the issue with cache. After renaming the cache folder also, it will show the same error. you can clear cache through index.php of magento by
$app = Mage::app();
if ($app != null)
{
$cache = $app->getCache();
if ($cache != null)
{
$cache->clean();
}
}
Hope it will work!