Many uses of the $request object will cause fatal errors when running in a headless context (i.e. kicked off by a cron job). In several cases the PLN plugin uses $request->getDispatcher() to get the dispatcher, which is then used to generate URLs. When run headlessly, $request->getDispatcher() will return null, leading to fatal errors. Use $application->getDispatcher() instead.
Many uses of the
$request
object will cause fatal errors when running in a headless context (i.e. kicked off by a cron job). In several cases the PLN plugin uses$request->getDispatcher()
to get the dispatcher, which is then used to generate URLs. When run headlessly,$request->getDispatcher()
will returnnull
, leading to fatal errors. Use$application->getDispatcher()
instead.