verbb / cp-nav

Control Panel Nav is a Craft CMS plugin to help manage your Control Panel navigation.
MIT License
130 stars 11 forks source link

SEOmatic subitems deleted #127

Open arentsen opened 1 year ago

arentsen commented 1 year ago

Describe the bug

Enabling the plugin deletes the subitems of the SEOmatic plugin and I would have to add them all manually. It would be better if the plugin did not do that.

Steps to reproduce

Craft CMS version

4.4

Plugin version

4.0.10

Multi-site?

yes

Additional context

No response

engram-design commented 1 year ago

Can't seem to immediately replicate this I'm afraid, testing installing/uninstalling SEOmatic first and vice versa with CP Nav. I'll keep at it...

arentsen commented 1 year ago

Thanks, I appreciate it, Josh.

flannelinc commented 1 year ago

I am having the same issue with Solspace Calendar. When CP Nav is enabled, 4 of the 7 subitems under Calendar are hidden. If I go into the CP Nav settings, they are missing there, as well. Thanks for your help!

engram-design commented 1 year ago

Thanks for chiming in, unfortunately I still can't seem to replicate that. Consistently I'm getting the following when installing

image

Can you let me know what method you're installing the plugin, in case that's a factor? I've tested using composer and the plugin store with the same result. Is this also on your local install, or on a staging/production environment?

And which sub-items (per the above screenshot) are hidden for you?

flannelinc commented 1 year ago

I usually install all plugins through the CP. I had CP Nav installed for a while and recently tried installing Calendar. I had issues installing through the CP, so I installed Calendar via command line. As I described, the bottom 4 items are missing, which is critical because I can't add/edit calendars without that link. I disable CP Nav and the links reappear. I enable CP Nav, and they disappear. This is on local env. Once we are done with the development using Calendar, I will push to prod and see if this persists in production. I will report back here. Thank you!

engram-design commented 1 year ago

So that would make some sort of sense because those bottom 4 (Events, Calendars, Settings, and Resources) require appropriate permissions. CP Nav is supposed to handle items that require permissions, but that might not be working correctly.

Just want to check what permissions you have on your current user. I assume you're an admin? Do you also have allowAdminChanges = true? I would assume so, just trying to figure out why there's a discrepancy with permissions...

flannelinc commented 1 year ago

Current user is Admin and yes to allowAdminChanges = true in the local env. On production, user is Admin, as well and allowAdmin is set to false. Issue persists in both environments. If CP Nav is enabled, we can not see those sub-page links.