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

Call to a member function getNavigations() on null - /app/vendor/verbb/cp-nav/src/services/Service.php: 46. #106

Open
jamesmacwhite opened this issue Jul 4, 2022 · 0 comments

Comments

@jamesmacwhite
Copy link
Contributor

Description

The following error is being logged in Yii Debug toolbar on all Control Panel requests but doesn't appear to be causing too much harm.

Call to a member function getNavigations() on null - /app/vendor/verbb/cp-nav/src/services/Service.php: 46.

It would appear $layout when being looped is null here: https://github.com/verbb/cp-nav/blob/craft-3/src/services/Service.php#L46, so getNavigations() fails.

Potentially wrapping with an if to check if layout is there first is possibly an easy fix.

Additional info

  • Craft version: 3.7.46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant