Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Flex Objects getRoute() error when running scheduler

Started by Justin Young 5 years ago · 4 replies · 459 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 Jerry Hunt, 4 days ago
2 76 8 hours ago
General · by pamtbaau, 13 hours ago
1 47 12 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago