Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Flex Objects getRoute() error when running scheduler

Started by Justin Young 5 years ago · 4 replies · 611 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago