I run this on the command line: phpunit --version
I get the following errors:
PHP Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/lib/php/pear/PHPUnit/Autoload.php on line 45
PHP Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/Users/dennismonsewicz/pear/share/pear:/usr/local/share/pear:/usr/lib/php/pear/PHPUnit') in /usr/lib/php/pear/PHPUnit/Autoload.php on line 45
Anyone else run into these issues? It is also causing me issues when I try to run my tests via the command line.
Ended being an issue with my include_path
This is my updated include path
include_path = ".:/php/includes:/usr/lib/php/pear"
Related
when I run php artisan cache:config the command throw the following error
PHP Warning: require(): Filename cannot be empty in /home/****/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 71
PHP Fatal error: require(): Failed opening required '' (include_path='.:/usr/share/php') in /home/****/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 71
I have no idea what causing this and how to fix it.
it turns out that there is one suspicious file inside config folder, once it's deleted the artisan command works just fine again.
I accidentally ran the laravel new command in a laravel project, which apparently deleted autoload_real.php
I get these error messages when running php artisan serve:
"PHP Warning: require(C:\xampp\htdocs\e-commerce\vendor\composer/../symfony/polyfill-ctype/bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\e-commerce\vendor\composer\autoload_real.php on line 66
Warning: require(C:\xampp\htdocs\e-commerce\vendor\composer/../symfony/polyfill-ctype/bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\e-commerce\vendor\composer\autoload_real.php on line 66
PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\e-commerce\vendor\composer/../symfony/polyfill-ctype/bootstrap.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\e-commerce\vendor\composer\autoload_real.php on line 66
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\e-commerce\vendor\composer/../symfony/polyfill-ctype/bootstrap.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\e-commerce\vendor\composer\autoload_real.php on line 66"
Is there a way to get back autoload_real.php?
Just run:
composer update
inside your project, it should fix it.
Check if the file actually exists. If it's missing, but the folder 'symfony/polyfill-ctype' is there and empty, try to delete vendor folder and run composer install again. It might be that composer install crashed previous time and it thinks the package is there. That was the case for me.
I got the following warning and error working on laravel project using xampp:
Warning: Unknown: failed to open stream: No such file or directory in
Unknown on line 0
Fatal error: Unknown: Failed opening required 'server.php'
(include_path='C:\xampp\php\PEAR') in Unknown on line 0
Solved
My antivirus deleted some of my files. I just turned off and now is working.
just run in cmd or terminal depends on your os
cd c:/xammp/htdocs/your_laravel_project
php artisan serve
Make sure you installed composer
I have a problem with phing.
I want to start phing in the commandline with " :> phing " but if I do this, I get this error:
Warning: require_once(phing/Project.php): failed to open stream: No
such file or directory in C:\develop\php\pear\pear\phing\Phing.php on
line 19
Fatal error: require_once(): Failed opening required 'phing/Project.php'
(include_path='C:\develop\php\pear\pear/../classes;.;C:\php\pear') in
C:\develop\php\pear\pear\phing\Phing.php on line 19
I installed Apache and php. This worked.
I tested using
php -c "c:/develop/php/php.info" -r "echo get_include_path();"
and got
-> .;C:\php\pear
What can I do. I looked here but this not help me:
Reference
Your include path is not setup correctly.
Run $ pear list-files phing/phing and have a look at the first php file. It will have a path C:\develop\php\pear\pear\phing\....
Edit your php.ini and append that path to the include path:
include_path=C:\develop\php\pear\pear;.;...
We have a ubuntu server where we dump our Kohana framework+php code & want to run it through cron job. But when we try it in command line it shows the following error:
root#andola-dev:~# php /var/www/realradius/index.php /var/www/realradius/system/core/Bootstrap.php
Warning: require(/root/system/core/Bootstrap.php): failed to open stream: No such file or directory in /var/www/realradius/index.php on line 139
Fatal error: require(): Failed opening required '/root/system/core/Bootstrap.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/realradius/index.php on line 139
Linux filesystems are case sensitive, windows ones are not. Bootstrap.php is usually lowercase. Try fixing that.