When I go to any page on my grav site I get the error:
"Call to a member function header() on null"
I've pasted the stack trace below.
The error disappears when I disable the events plugin.
I've not changed anything recently. However I have noticed an error appearing in the admin panel, which may or may not be related: HTTP/2 403 returned for "https://getgrav.org/blog.atom".
Any ideas what might be causing this?
Thanks!
Stack trace
Error thrown with message "Call to a member function header() on null"
Stacktrace:
43 Error in /home/tgbihrgd/public_html/grav/user/plugins/events/classes/eventsProcessor.php:389
42 Events\EventsProcessor:addVirtualEventsPages in /home/tgbihrgd/public_html/grav/user/plugins/events/classes/eventsProcessor.php:148
41 Events\EventsProcessor:all in /home/tgbihrgd/public_html/grav/user/plugins/events/events.php:200
40 Grav\Plugin\EventsPlugin:onPagesInitialized in /home/tgbihrgd/public_html/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:264
39 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /home/tgbihrgd/public_html/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:239
38 Symfony\Component\EventDispatcher\EventDispatcher:callListeners in /home/tgbihrgd/public_html/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:73
37 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Grav.php:597
36 Grav\Common\Grav:fireEvent in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/PagesProcessor.php:53
35 Grav\Common\Processors\PagesProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
34 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
33 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/TwigProcessor.php:38
32 Grav\Common\Processors\TwigProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
31 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
30 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/AssetsProcessor.php:39
29 Grav\Common\Processors\AssetsProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
28 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
27 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/SchedulerProcessor.php:40
26 Grav\Common\Processors\SchedulerProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
25 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
24 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/BackupsProcessor.php:39
23 Grav\Common\Processors\BackupsProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
22 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
21 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/TasksProcessor.php:69
20 Grav\Common\Processors\TasksProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
19 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
18 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/RequestProcessor.php:64
17 Grav\Common\Processors\RequestProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
16 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
15 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/ThemesProcessor.php:38
14 Grav\Common\Processors\ThemesProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
13 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
12 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/PluginsProcessor.php:39
11 Grav\Common\Processors\PluginsProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
10 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
9 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/InitializeProcessor.php:130
8 Grav\Common\Processors\InitializeProcessor:Grav\Common\Processors{closure} in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Debugger.php:546
7 Grav\Common\Debugger:profile in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/InitializeProcessor.php:131
6 Grav\Common\Processors\InitializeProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
5 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
4 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php:40
3 Grav\Framework\RequestHandler\Middlewares\MultipartRequestSupport:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
2 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
1 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Grav.php:312
0 Grav\Common\Grav:process in /home/tgbihrgd/public_html/grav/index.php:47
When I go to any page on my grav site I get the error:
"Call to a member function header() on null"
I've pasted the stack trace below.
The error disappears when I disable the events plugin.
I've not changed anything recently. However I have noticed an error appearing in the admin panel, which may or may not be related: HTTP/2 403 returned for "https://getgrav.org/blog.atom".
Any ideas what might be causing this?
Thanks!
Stack trace
Error thrown with message "Call to a member function header() on null"
Stacktrace:
43 Error in /home/tgbihrgd/public_html/grav/user/plugins/events/classes/eventsProcessor.php:389
42 Events\EventsProcessor:addVirtualEventsPages in /home/tgbihrgd/public_html/grav/user/plugins/events/classes/eventsProcessor.php:148
41 Events\EventsProcessor:all in /home/tgbihrgd/public_html/grav/user/plugins/events/events.php:200
40 Grav\Plugin\EventsPlugin:onPagesInitialized in /home/tgbihrgd/public_html/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:264
39 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /home/tgbihrgd/public_html/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:239
38 Symfony\Component\EventDispatcher\EventDispatcher:callListeners in /home/tgbihrgd/public_html/grav/vendor/symfony/event-dispatcher/EventDispatcher.php:73
37 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Grav.php:597
36 Grav\Common\Grav:fireEvent in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/PagesProcessor.php:53
35 Grav\Common\Processors\PagesProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
34 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
33 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/TwigProcessor.php:38
32 Grav\Common\Processors\TwigProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
31 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
30 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/AssetsProcessor.php:39
29 Grav\Common\Processors\AssetsProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
28 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
27 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/SchedulerProcessor.php:40
26 Grav\Common\Processors\SchedulerProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
25 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
24 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/BackupsProcessor.php:39
23 Grav\Common\Processors\BackupsProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
22 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
21 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/TasksProcessor.php:69
20 Grav\Common\Processors\TasksProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
19 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
18 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/RequestProcessor.php:64
17 Grav\Common\Processors\RequestProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
16 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
15 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/ThemesProcessor.php:38
14 Grav\Common\Processors\ThemesProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
13 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
12 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/PluginsProcessor.php:39
11 Grav\Common\Processors\PluginsProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
10 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
9 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/InitializeProcessor.php:130
8 Grav\Common\Processors\InitializeProcessor:Grav\Common\Processors{closure} in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Debugger.php:546
7 Grav\Common\Debugger:profile in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Processors/InitializeProcessor.php:131
6 Grav\Common\Processors\InitializeProcessor:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
5 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
4 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php:40
3 Grav\Framework\RequestHandler\Middlewares\MultipartRequestSupport:process in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:50
2 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:62
1 Grav\Framework\RequestHandler\RequestHandler:handle in /home/tgbihrgd/public_html/grav/system/src/Grav/Common/Grav.php:312
0 Grav\Common\Grav:process in /home/tgbihrgd/public_html/grav/index.php:47