Closed knynkwl closed 2 years ago
Also, when I enable a navigation item for one site, I still get this error. It seems like it needs to be enabled for the default site in order for it to work at all.
Re-saving the navigation should kick those settings into gear. There's supposed to be backward-compatibility handling if the permissions
and siteSettings
columns in the navigation_navs
are NULL
(not an empty array). If that's the case, then all sites should be enabled.
I wouldn't recommend adding the missing data manually, instead re-saving all navigations.
As for still getting the error when you enable just one site - do you mean you've picked a site from "Site Settings" in the navigation settings, and you're getting that error? You should certainly be able to enable a single site, even if not the default/primary one, and that seems to work for me.
We ran into the same issue, and resaving each navigation wasn't enough to fix the issue. For one of our navigations, we had to manually uncheck a Permissions
item (Entries, for instance), save, then recheck and resave. This seems to have forced the project config to update and now the navigation is accessible again.
I would also suggest trying a ./craft project-config/rebuild
to build the Yaml files again from the database in case they're not getting generated.
Description We recently updated:
Craft 3.4.24 -> 3.6.11 Navigation 1.3.20 -> 1.4.13
We are currently not able to access our old Navigation items, as it throws the error:
I noticed going through the yaml files, that all the navigations are missing some data.
Here is a navigation I created after the upgrade (works as intended):
Here is an example of the previous navigation items:
Should I just fill in all the missing data, or maybe just
siteSettings
?Additional info