Comments (3)
Can you post the stacktrace? Should be in your logs.
from laravel-async-queue.
Here's the stack trace
[2017-04-28 15:42:32] dev.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getName() on null in <root>\app\Providers\ViewServiceProvider.php:36
Stack trace:
#0 <root>\vendor\laravel\framework\src\Illuminate\View\Concerns\ManagesEvents.php(164): App\Providers\ViewServiceProvider->App\Providers\{closure}(Object(Illuminate\View\View))
#1 <root>\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php(332): Illuminate\View\Factory->Illuminate\View\Concerns\{closure}('composing: noti...', Array)
#2 <root>\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php(199): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('composing: noti...', Array)
#3 <root>\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php(172): Illuminate\Events\Dispatcher->dispatch('composing: noti...', Array, false)
#4 <root>\vendor\laravel\framework\src\Illuminate\View\Concerns\ManagesEvents.php(179): Illuminate\Events\Dispatcher->fire('composing: noti...', Array)
#5 <root>\vendor\laravel\framework\src\Illuminate\View\View.php(118): Illuminate\View\Factory->callComposer(Object(Illuminate\View\View))
#6 <root>\vendor\laravel\framework\src\Illuminate\View\View.php(85): Illuminate\View\View->renderContents()
#7 <root>\vendor\laravel\framework\src\Illuminate\Mail\Markdown.php(62): Illuminate\View\View->render()
#8 <root>\vendor\laravel\framework\src\Illuminate\Notifications\Channels\MailChannel.php(78): Illuminate\Mail\Markdown->render('notifications::...', Array)
#9 <root>\vendor\laravel\framework\src\Illuminate\Notifications\Channels\MailChannel.php(58): Illuminate\Notifications\Channels\MailChannel->buildView(Object(Illuminate\Notifications\Messages\MailMessage))
#10 <root>\vendor\laravel\framework\src\Illuminate\Notifications\NotificationSender.php(113): Illuminate\Notifications\Channels\MailChannel->send(Object(App\Models\User), Object(App\Notifications\TestNotification))
#11 <root>\vendor\laravel\framework\src\Illuminate\Notifications\NotificationSender.php(89): Illuminate\Notifications\NotificationSender->sendToNotifiable(Object(App\Models\User), '28071aa5-9296-4...', Object(App\Notifications\TestNotification), 'mail')
#12 <root>\vendor\laravel\framework\src\Illuminate\Notifications\ChannelManager.php(51): Illuminate\Notifications\NotificationSender->sendNow(Object(Illuminate\Database\Eloquent\Collection), Object(App\Notifications\TestNotification), Array)
#13 <root>\vendor\laravel\framework\src\Illuminate\Notifications\SendQueuedNotifications.php(57): Illuminate\Notifications\ChannelManager->sendNow(Object(Illuminate\Database\Eloquent\Collection), Object(App\Notifications\TestNotification), Array)
#14 [internal function]: Illuminate\Notifications\SendQueuedNotifications->handle(Object(Illuminate\Notifications\ChannelManager))
#15 <root>\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(29): call_user_func_array(Array, Array)
#16 <root>\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#17 <root>\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#18 <root>\vendor\laravel\framework\src\Illuminate\Container\Container.php(531): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#19 <root>\vendor\laravel\framework\src\Illuminate\Bus\Dispatcher.php(94): Illuminate\Container\Container->call(Array)
#20 <root>\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(114): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(Illuminate\Notifications\SendQueuedNotifications))
#21 <root>\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Notifications\SendQueuedNotifications))
#22 <root>\vendor\laravel\framework\src\Illuminate\Bus\Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#23 <root>\vendor\laravel\framework\src\Illuminate\Queue\CallQueuedHandler.php(42): Illuminate\Bus\Dispatcher->dispatchNow(Object(Illuminate\Notifications\SendQueuedNotifications), false)
#24 <root>\vendor\laravel\framework\src\Illuminate\Queue\Jobs\Job.php(69): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\DatabaseJob), Array)
#25 <root>\vendor\laravel\framework\src\Illuminate\Queue\Worker.php(291): Illuminate\Queue\Jobs\Job->fire()
#26 <root>\vendor\barryvdh\laravel-async-queue\src\Console\AsyncCommand.php(81): Illuminate\Queue\Worker->process('async', Object(Illuminate\Queue\Jobs\DatabaseJob), Object(Illuminate\Queue\WorkerOptions))
#27 <root>\vendor\barryvdh\laravel-async-queue\src\Console\AsyncCommand.php(59): Barryvdh\Queue\Console\AsyncCommand->processJob('async', '84', Object(Illuminate\Queue\WorkerOptions))
#28 [internal function]: Barryvdh\Queue\Console\AsyncCommand->fire(Object(Illuminate\Queue\WorkerOptions))
#29 <root>\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(29): call_user_func_array(Array, Array)
#30 <root>\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#31 <root>\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#32 <root>\vendor\laravel\framework\src\Illuminate\Container\Container.php(531): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#33 <root>\vendor\laravel\framework\src\Illuminate\Console\Command.php(182): Illuminate\Container\Container->call(Array)
#34 <root>\vendor\symfony\console\Command\Command.php(262): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#35 <root>\vendor\laravel\framework\src\Illuminate\Console\Command.php(167): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#36 <root>\vendor\symfony\console\Application.php(826): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 <root>\vendor\symfony\console\Application.php(190): Symfony\Component\Console\Application->doRunCommand(Object(Barryvdh\Queue\Console\AsyncCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 <root>\vendor\symfony\console\Application.php(121): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#39 <root>\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(123): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#40 <root>\artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#41 {main}
from laravel-async-queue.
Err. Looks like it was my fault. I have this line in my ViewServiceProvider.php
$twig->addGlobal('current_route', request()->route()->getName());
request()->route()
returns null when rendering the view for the email.
Closing this now. Thanks.
from laravel-async-queue.
Related Issues (20)
- Issues with Process class and fromShellCommandline method in Laravel 8
- Notify when Queue ends
- Doesn't work with Laravel 5.6? HOT 2
- Laravel Horizon support? HOT 1
- Please support laravel 5.6.* HOT 2
- symfony/process 4+ error HOT 1
- Documentation HOT 1
- Laravel 5.7 support?
- Jobs freeze
- Prevent to exec a job before finish other
- cron jobed async queue is not working
- Errro Unknown error while connecting
- Laravel 5.8 issue
- Start Process is not compatible with symfony/process 5x
- How can I retry failed jobs?
- Laravel 7 / Synpony 5
- Alternative to the later method
- Suggestion to resolve queue conflict
- Dead lock HOT 1
- Doesn't make a lot of sense HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-async-queue.