I have the same mistake.
production.ERROR: Call to a member function beginTransaction() on null
I have just created a digitalocean droplet and pushed my local app to the server and changed the environment to production.
I am using the database queue driver to process jobs, this has worked perfectly fine on my local development server however on the live production server I keep getting the following error in storage/logs/laravel.log
[2017-02-24 10:03:50] production.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function beginTransaction() on null in /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php:108
Stack trace:
#0 /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php(92): Illuminate\Database\Connection->createTransaction()
#1 /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Queue/DatabaseQueue.php(192): Illuminate\Database\Connection->beginTransaction()
#2 /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(236): Illuminate\Queue\DatabaseQueue->pop('default')
#3 /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(101): Illuminate\Queue\Worker->getNextJob(Object(Illuminate\Queue\DatabaseQueue), 'default')
#4 /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(100): Illuminate\Queue\Worker->daemon('database', 'default', Object(Illuminate\Queue\WorkerOptions))
#5 /srv/users/serverpilot/apps/myapp/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(83): Illuminate\Queue\Console\WorkCommand->runWorker('database', 'default')
#6 [internal function]: Illuminate\Queue\Console\WorkCommand->fire()
etc...
I am not sure but does this mean the database connection is not connected? The website itself appears to work correctly with all data from the database being returned.
I have supervisor configured correctly.
I've searched everywhere but cannot find any solutions to this. It keeps constantly logging this same error to the log file every 3 seconds.
Any help would be greatly appreciated.
Thanks
Please or to participate in this conversation.