Closed darylknight closed 2 years ago
Hmmm, this issue cropped up some time ago and fixed via https://github.com/verbb/cp-nav/commit/97323fe407d715a107e3c3fea507d4e8aa86579e in 4.0.2. This comes down to when trying to re-generate navigations on the command line, and some plugin's getCpNavItem()
functions don't work so well in that scenario.
I'm sorry I don't understand what that means. Is it fixable? I'm currently uninstalling CP Nav before upgrading to Craft 4 and re-installing it again afterwards. It's happened on 3 sites so far.
What I mean is that it _shouldn't be happening anymore, and the site's I've tested from Craft 3 to 4 don't seem to throw this error (with SEOmatic installed), but I'll keep digging. I can't imagine you're not updating to the latest CP Nav version (4.0.5) which is why I mentioned that, just in case for some reason you're only updating to 4.0.0
or 4.0.1
(unlikely, but you never know!)
Got it - thanks. Yeah, this is after going through everything on the update tab and adding that version with the ^ symbol, so "verbb/cp-nav": "^4.0.5",
This is indeed still an issue, you're right. Fixed for the next release. To get this fix early, change your verbb/cp-nav
requirement in composer.json
to:
"require": {
"verbb/cp-nav": "dev-craft-4 as 4.0.5",
"...": "..."
}
Then run composer update
.
Yep, this worked - thank you!
Fixed in 4.0.6
Describe the bug
After preparing everything to update to Craft 4, CP Nav fails the migration. Error:
Steps to reproduce
Craft CMS version
Craft CMS 3.7.51
Plugin version
3.0.17
Multi-site?
Yes
Additional context
No response