Failed opening 'PHPUnit/Autoload.php' - php

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

Related

Errors occurred during magento installation

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.

Magento URl error with PHP

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.

Site isn't seeing the autoload

I'm getting this error:
Warning: require(/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php): failed to open stream: No such file or directory in /home/wiseman/public_html/facebook.php on line 3
Fatal error: require(): Failed opening required '/home/wiseman/public_html/path/to/facebook-php-sdk-v4/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wiseman/public_html/facebook.php on line 3
The sdk has been installed by the host server and I can see the autoload file in exactly the path it's looking for. Anyone know what the problem could be? I'm new to working with facebook and am really green so be gentle! :)

Error with uploading site that uses codeigniter

After uploading my site to a hosting, it shows the following error:
Warning: include() [function.include]: Failed opening
'/home/u630543546/public_html/mikenpina/application/views/errors/html/error_php.php'
for inclusion (include_path='.:/opt/php-5.3/pear') in
/home/u630543546/public_html/mikenpina/system/core/Exceptions.php on
line 216
Warning: include() [function.include]: Failed opening
'/home/u630543546/public_html/mikenpina/application/views/errors/html/error_php.php'
for inclusion (include_path='.:/opt/php-5.3/pear') in
/home/u630543546/public_html/mikenpina/system/core/Exceptions.php on
line 216
What could be the cause of this? I've been tracing the error since yesterday but can't seem to find it. I used CodeIgniter 2.2.0 and the latest stable bootstrap.
Thanks in advance guys.

Troubleshooting "failed to open stream: No such file or directory" when require()ing twilio-lib.php

I have downloaded the Twilio PHP library but I am getting an error when I try to include the library in my code.
Below is the error I get:
Warning: require(twilio-lib.php) [function.require]: failed to open stream: No such file or directory in /websites-dev/dev.icalapp.rogersdigitalmedia.com/testing.php on line 11
Fatal error: require() [function.require]: Failed opening required 'twilio-lib.php' (include_path='.:/usr/share/pear:/usr/share/php') in /websites-dev/dev.icalapp.rogersdigitalmedia.com/testing.php on line 11
Someone fudged up somewhere - there is no such twilio-lib.php file in Twilio's PHP library.
Try removing the line in your downloaded PHP that looks exactly or similar to the following:
require "twilio-lib.php";

Categories