-
-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught exception 'ReflectionException' with message 'Class config does not exist' #192
Comments
I have the same issue, cannot load service, class "config" does not exist - using laravel/framework (v5.2.15): vagrant@engltr:~/engltr$ php artisan vendor:publish Fatal error: Uncaught ReflectionException: Class config does not exist in /home/vagrant/engltr/vendor/laravel/framework/src/Illuminate/Container/Container.php:738 |
i also ever have same issue, but after i try to remove this code : |
Hi, The error can be solved!!! Thanks.. |
I'm having this same problem with bootstrap/app.php |
Do not include |
run
Or This solved the issue for me |
Thanx @peterw35 , I had the same issue beacause I put: Thx |
@Kleinast you should've open the issue in Barryvdh's Debugbar project, not here. but the principle is the same. if you are using laravel, do NOT follow any Lumen instructions. |
in my case it was because i havent given 777 permission to bootstrap/cache/services.php file |
For me, if you change or update APP_NAME in your .env file with spaces like My Awesome, make sure that you enclose it with " (quote). |
@ryscript really weird error I have not read this I've never found this mistake Thanks |
same error has also happened if you don't have conf/datatables.php. try installing latest or above 7.x
add these lines in config/app.php
if you don't have file config/datables.conf. Try to paste these file there. |
I was facing the same issue. "Uncaught ReflectionException: Class config does not exist" I have figured out this, here is the solution: To find the error, Run this command php artisan cache:clear Output is like this: [Dotenv\Exception\InvalidFileException] I have changes the below line(changes space to nbsp) |
I got this same issue, but not related to phpunit. if you run php artisan clear-compiled while having this issue, it will tell the solution ;) |
check your apache user and file system user first. |
in my case there was a error in the .env file |
I had an error in
You need to add quotes like so:
And error will go away. |
@gugglegum Thanks! That was actually what made a setup throw the exception for me too. |
I'm also having the same error in .env file with APP_NAME. |
@ryscript you are a lifesaver! |
Had same problem and i've deleted bootstrap/cache/config.php and ran |
If all the above failed for you, delete all files in |
I encounter the same issue after changing APP_NAME in .env file, silly me! |
I had also the same problem and I follow all answers in Github and Stackoverflow but no thing was helped.
then I run this command : and finally :
and now all works fine 😄 |
This works for me! |
Good Grief!!!! How long is is this issue going to go on? Whay form of begging/bribery/weeping will get Laravel to fix this!!!!!!!! |
Same here. Having a space in one of the config would do it |
Thanks, It worked in my case. |
I have an issue like this i'm using laravel 5.How can i fix it.Thanks for help
The text was updated successfully, but these errors were encountered: