FatalErrorException in Router.php line 737:
Class 'Illuminate\Support\Collection' not found
Getting this error while uploading on hosting server. I have updated my composer but am still getting this error.
Just change php version to a matching version.
Related
I have PHP 5.4 on a litespeed web server. PHP has been compiled properly with memcached module and we also installed properly memcached library.
In fact the problem suddenly happened without any change at all (server side) when I run the artisan command, I am getting this error:
PHP Fatal error: Class 'Memcached' not found in /laravel/vendor/laravel/framework/src/Illuminate/Cache/MemcachedConnector.php on line 52
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Memcached' not found
I googled the issue but was unable to find a solution. I am using Laravel 5.0.
I edited the app/Http/Routes.php and returned new Memcached and the php object was returned properly...
Any help would be appreciated.
I had the same issue.
Replace in .env file:
From : CACHE_DRIVER=memcached<br/>
To : CACHE_DRIVER=file**
then clear cache : php artisan cache:clear
I have an error which you can see in this picture, and I don't know how to fix it. I am using Laravel 5.1.
Error:
Sorry, the page you are looking for could not be found.
NotFoundHttpException in RouteCollection.php line 161
Either make your route something like in your Routes.php file from App\Http folder
Route::get('/laravel/alert/',function(){
//statement here
});
or change your page url to localhost/alert
Hope it will help you.
happyCoding
Assuming you Apache configuration is already pointed to your public folder in your project folder as DocumentRoot, it should able to work by accessing this route:
localhost/alert
I noted you use localhost/laravel/alert which looks wrong because you set your route to be /alert not laravel/alert
If you are not sure this is Apache or Laravel issue, run php artisan serve on the project folder and access the routes with this address, localhost:8000/alert
I am trying to install Riari forum for Laravel and I follow strictly the steps from http://teamteatime.net/docs/laravel-forum/3.x/installation.md
When I type php artisan vendor:publish in the console, it gives me this error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Riari\Forum\ForumServiceProvider' not found
How can I fix it?
You need to put this (Riari\Forum\ForumServiceProvider) in Config/app.php inside service provider in the same format where already some providers are added
I have recently cloned my bitbucket repo and I'm in the process of moving it to a new live directory.
Upon deploying my codebase to the new live directory, I got a "Class not found" error related to the thujohn/twitter package. So I attempted to remove the package altogether by using:
composer remove thujohn/twitter
Unfortunately, I get this error back:
PHP Fatal error: Class 'Thujohn\Twitter\TwitterServiceProvider' not found in /home/forge/hbavault.com/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 158
PHP Stack trace:
PHP 1. {main}() /home/forge/site.com/artisan:0
PHP 2. require_once() /home/forge/site.com/artisan:30
PHP 3. require() /home/forge/site.com/bootstrap/start.php:67
PHP 4. Illuminate\Foundation\ProviderRepository->load() /home/forge/site.com/vendor/laravel/framework/src/Illuminate/Foundation/start.php:210
PHP 5. Illuminate\Foundation\ProviderRepository->createProvider() /home/forge/site.com/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:82
{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Thujohn\\Twitter\\TwitterServiceProvider' not found","file":"\/home\/forge\/site.com\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/ProviderRepository.php","line":158}}
I've removed reference to the package from my composer.json file and under providers and aliases in the config/app.php file
It is also removed from the two places I was using it in my code.
Any ideas as to what else I need to do to eliminate this error and entirely remove the package?
I downloaded latest Codeigniter version (2.1.4), and all I did is adding
$autoload['libraries'] = array('database');
to application/config/autoload.php
and I have a following error:
Fatal error: Class 'CI_DB' not found in /www/zapach_www/www/kringle/codeigniter/system/database/drivers/mysql/mysql_driver.php on line 31
I have this error only on one hosting machine (normal shared server), it works fine locally, or in a different server. Unfortunately I have to use specific one.
The problem appears in PHP 5.2 and 5.3
Locally I use php 5.3.