Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Flex Objects getRoute() error when running scheduler

Started by Justin Young 5 years ago · 4 replies · 744 views
5 years ago

After updating plugins, I now get the following error when bin/grav scheduler runs:

PHP
PHP Fatal error:  Uncaught Error: Call to a member function getRoute() on null in /home/example.com/gravsite/user/plugins/flex-objects/flex-objects.php:293
Stack trace:
#0 /home/example.com/gravsite/vendor/symfony/event-dispatcher/EventDispatcher.php(264): Grav\Plugin\FlexObjectsPlugin->onPagesInitialized(Object(RocketTheme\Toolbox\Event\Event), 'onPagesInitiali...', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#1 /home/example.com/gravsite/vendor/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'onPagesInitiali...', Object(RocketTheme\Toolbox\Event\Event))
#2 /home/example.com/gravsite/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'onPagesInitiali...', Object(RocketTheme\Toolbox\Event\Event))
#3 /home/example.com/gravsite/system/src/Grav/Common/Grav.php in /home/example.com/gravsite/user/plugins/flex-objects/flex-objects.php on line 293

I looked for issues related to getRoute() on the FlexObjects GitHub, but to no avail.

Any input?

5 years ago

@superhua, I suggest you create a new issue on repo of FlexObjects and keep the community posted.

5 years ago

@superhua / @RalfKerkhoff ,

The issue seems to be fixed.

You can download the code and test or wait until a new release of the plugin will be released (probably with next version of Grav).

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago