I use couchbase nosql database by ytake/laravel-couchbase package in my laravel 5.1 project
After install that package and run php artisan serve i got error :
PHP Fatal error: Class 'CouchbaseN1qlQuery' not found in /var/www/html/eee/vendor/ytake/laravel-couchbase/src/CouchbaseServiceProvider.php on line 71
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'CouchbaseN1qlQuery' not found
I had this error for a long time.
For me, the problem was that the CLI user couldn't write in the laravel.log when the couchbase client was trying to write a warning to it. Check user permissions.
Related
I am working on a laravel app, and when I run php artisan serve I get this error:
ReflectionException (-1)
Class VoyagerAuth does not exist
You might have installed the-control-group/voyager and then deleted some file.
If you wish to use it try to run
composer install
or
composer update
if you don't want to use voyager uninstall it, there is an handy guide on an answer on this older post
for a Laravel 5.1 project I am trying to setup a beta version of this project on a shared hoster. Everything works fine except for artisan.
I do login through ssh and move to the Laravel project directory and the not matter what php artisan command I use I get following error:
PHP Fatal error: Class 'Illuminate\Queue\ConsoleServiceProvider' not found in /www/htdocs///vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 543
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Illuminate\Queue\ConsoleServiceProvider' not found
Any ideas on what could be wrong?
The autoloading should work correctly as the project works fine using the browser.
The steps by #manix helped me a lot:
Delete file bootstrap/cache/services.json
call composer update
run php artisan optimize
I'm a newbie in Laravel. I just cloned my co-worker git and try to php artisan list but it gives me error
PHP Fatal error: Class 'Bllim\Datatables\DatatablesServiceProvider' not found in /Users/path-to-project/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157
I can't find any documentations about this error and search results don't really help.
Any of you ever met this problem and care to help me fix this? Thank you.
Asking your coworker would be a first good step :)
That said, the error you're getting indicates that PHP can't find or autoload a Laravel Service provider class. If your coworker is following Laravel best practices, you should be able to fix this by running the following command from your root project directory (or the directory with a composer.json file)
$ composer install
or ...
$ composer.phhar install
The format of the command (phar or no phar) will depend on how you've installed composer, the dependency/package manager used in Laravel.
I am installing dnode-php from github repository.
I am running PHP 5.3.10 and Composer. I used the composer.json file included in the above repository to generate my autoload.php files.
When I go to run server.php I get the following message:
PHP Fatal error: Class 'React\EventLoop\StreamSelectLoop' not found in /home/chelsea/dnode-php-master/examples/simple/server.php on line 16
How do I fix this error?
You want to download the React library for this. And then your issue will be solved out.
I'm trying to testing my app made with Symfony. I wrote a test and when I launch it, i get the following error:
Fatal error: Class 'Doctrine\Bundle\DoctrineBundle\DoctrineBundle'
not found in /.../app/AppKernel.php on line 17
I had the same error with Symfony's MonologBundle, AsseticBundle and SwiftmailerBundle: then I've manually added these bundles into my app, so pheraps I have fixed those errors, but with Doctrine I've not found any solutions yet.
It looks like maybe you did not install the Doctrine bundle.
Try to go to the root of your project where the composer.phar is located through a console, and try to run it like this:
php composer.phar
It will install all dependencies of Symfony2,and hopefully everything is going to work :)