-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Call to a member function beginTransaction() on null #964
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
Comments
Also posted question on stack overflow http://stackoverflow.com/questions/39615770/php-fatal-error-call-to-a-member-function-begintransaction-on-null-in-connect |
Hello, I'm also getting this same error. [2016-11-12 20:18:45] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function beginTransaction() on null' in C:\wamp\www\blog\vendor\laravel\framework\src\Illuminate\Database\Connection.php:611 Can anybody please help me? Thanks, |
@sachinvrg , Have you configured queue properly as described over here: I have found the issue with my project. |
The specific issue that it's complaining about is that it's trying to get the The |
override this in authcontroller protected function incrementLoginAttempts(Request $request){} |
@janhartigan , where to overload |
Having this issue on Laravel 5.8 (latest) when attempting to connect through API.
|
@phillmorgan28 did you eventually resolve this? |
Anyone solved this problem? i am not using queue. |
This issue still persists. I've already configured my Already ran config('queue.connections.database')[
"driver" => "mongodb",
"table" => "jobs",
"queue" => "default",
"retry_after" => 90,
] config('queue.failed')[
"driver" => "mongodb",
"database" => "mongodb",
"table" => "failed_jobs",
] Any other fix for this? |
@paouriel can't recreate, check that you've correct mongodb settings, probably you're not even connecting to db. |
@divine I managed to create a workaround for this. I've created a temporary command. |
This is really bad practice to modify vendor files. As I've said can't really recreate it. Fork this library https://github.com/Smolevich/demo-mongo-application and add configuration as well as examples so it will be easy to recreate issues you're having. |
Any solution for this headache issue ? |
Explain more please |
The problem still exists. @jenssegers, please reopen this issue. |
See #1904 Thanks! |
When I fire php artisan queue:work command , it throws following error
PHP Fatal error: Call to a member function beginTransaction() on null in /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 576
PHP Stack trace:
PHP 1. {main}() /var/www/html/push_admin/setupl/artisan:0
PHP 2. Illuminate\Foundation\Console\Kernel->handle() /var/www/html/push_admin/setupl/artisan:36
PHP 3. Symfony\Component\Console\Application->run() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107
PHP 4. Symfony\Component\Console\Application->doRun() /var/www/html/push_admin/setupl/vendor/symfony/console/Application.php:117
PHP 5. Symfony\Component\Console\Application->doRunCommand() /var/www/html/push_admin/setupl/vendor/symfony/console/Application.php:186
PHP 6. Illuminate\Console\Command->run() /var/www/html/push_admin/setupl/vendor/symfony/console/Application.php:794
PHP 7. Symfony\Component\Console\Command\Command->run() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Console/Command.php:155
PHP 8. Illuminate\Console\Command->execute() /var/www/html/push_admin/setupl/vendor/symfony/console/Command/Command.php:256
PHP 9. Illuminate\Container\Container->call() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Console/Command.php:169
PHP 10. call_user_func_array:{/var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Container/Container.php:507}() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Container/Container.php:507
PHP 11. Illuminate\Queue\Console\WorkCommand->fire() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Container/Container.php:507
PHP 12. Illuminate\Queue\Console\WorkCommand->runWorker() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:79
PHP 13. Illuminate\Queue\Worker->pop() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:126
PHP 14. Illuminate\Queue\Worker->getNextJob() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:149
PHP 15. Illuminate\Queue\DatabaseQueue->pop() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:180
PHP 16. Illuminate\Database\Connection->beginTransaction() /var/www/html/push_admin/setupl/vendor/laravel/framework/src/Illuminate/Queue/DatabaseQueue.php:162
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function beginTransaction() on null
Anybody have any idea about it? Please help!!!
The text was updated successfully, but these errors were encountered: