Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flex errors #3062

Closed
acondura opened this issue Nov 11, 2020 · 7 comments
Closed

Flex errors #3062

acondura opened this issue Nov 11, 2020 · 7 comments
Assignees

Comments

@acondura
Copy link

I keep seeing the following errors in PHP error logs:

[10-Nov-2020 09:13:01 America/New_York] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Grav\Framework\Flex\FlexDirectory::createIndex() must be of the type array, bool given, called in /var/www/webroot/ROOT/system/src/Grav/Framework/Flex/FlexDirectory.php on line 892 and defined in /var/www/webroot/ROOT/system/src/Grav/Framework/Flex/FlexDirectory.php:500
Stack trace:
#0 /var/www/webroot/ROOT/system/src/Grav/Framework/Flex/FlexDirectory.php(892): Grav\Framework\Flex\FlexDirectory->createIndex(false, 'storage_key')
#1 /var/www/webroot/ROOT/system/src/Grav/Framework/Flex/FlexDirectory.php(338): Grav\Framework\Flex\FlexDirectory->loadIndex('')
#2 /var/www/webroot/ROOT/system/src/Grav/Common/Service/AccountsServiceProvider.php(155): Grav\Framework\Flex\FlexDirectory->getIndex()
#3 /var/www/webroot/ROOT/system/src/Grav/Common/Service/AccountsServiceProvider.php(66): Grav\Common\Service\AccountsServiceProvider->flexAccounts(Object(Grav\Common\Grav))
#4 /var/www/webroot/ROOT/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\AccountsService in /var/www/webroot/ROOT/system/src/Grav/Framework/Flex/FlexDirectory.php on line 500

[10-Nov-2020 09:36:52 America/New_York] PHP Fatal error: Uncaught Error: Call to a member function trackHit() on null in /var/www/webroot/ROOT/user/plugins/admin/admin.php:419
Stack trace:
#0 /var/www/webroot/ROOT/vendor/symfony/event-dispatcher/EventDispatcher.php(264): Grav\Plugin\AdminPlugin->onShutdown(Object(RocketTheme\Toolbox\Event\Event), 'onShutdown', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#1 /var/www/webroot/ROOT/vendor/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'onShutdown', Object(RocketTheme\Toolbox\Event\Event))
#2 /var/www/webroot/ROOT/vendor/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'onShutdown', Object(RocketTheme\Toolbox\Event\Event))
#3 /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php(491): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(RocketTheme\Toolbox\Event\Event), 'onShutdown')
#4 /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php(551): Gr in /var/www/webroot/ROOT/user/plugins/admin/admin.php on line 419

I use Flex objects for accounts and pages in a Grav 1.7 rc17 installation.

@acondura
Copy link
Author

grav-flex-errors

@rhukster
Copy link
Member

What version of Grav + Flex are you on?

@acondura
Copy link
Author

acondura commented Nov 11, 2020 via email

@mahagr
Copy link
Member

mahagr commented Nov 12, 2020

That should fix it.

@acondura
Copy link
Author

acondura commented Nov 12, 2020 via email

@w00fz
Copy link
Member

w00fz commented Nov 12, 2020

I'm sorry, what should fix it?

Matias commit: a9e6d36

@acondura
Copy link
Author

Right, thank you. I saw the reply in my email and nothing else.
Thank you!

@mahagr mahagr closed this as completed Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants