Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created two menus for a group. I ended up not needing the first one (default menu), so I went into the menu system and deleted it. Now, when I try to edit the second menu, I get this error:
The menu name cannot begin with "menu-".
Comment | File | Size | Author |
---|---|---|---|
#1 | og_menu-882546.patch | 1.44 KB | jide |
Comments
Comment #1
jide CreditAttribution: jide commentedThe patch from #754900: OG Menu names that start with menu- don't get associated with the group was a bad idea.
Here is a patch that should solve this issue while allowing to create menu beginning with "menu-".
Comment #2
jaarong CreditAttribution: jaarong commentedThanks jide, after looking through the issues here, I assumed it had something to do with the fix of that bug. Thanks again, this was really in the nick of time for this project that I'm working on. I haven't applied it yet, but I'll test today and report back any errors.
Comment #3
jide CreditAttribution: jide commentedThe patch has been committed to CVS.
Comment #5
jaarong CreditAttribution: jaarong commentedThis bug has come up again on my site. I actually probably haven't used OG Menu since the 2.4 update, so I'm guessing that is what caused it since applying the patch fixed it for me.
Comment #6
jaarong CreditAttribution: jaarong commentedVersion update, I'm using 2.4
Comment #7
jaarong CreditAttribution: jaarong commentedWas this patch taken back out of CVS? Because after upgrading to the latest version, I had to reapply the patch to fix my problem.
Comment #8
ñull CreditAttribution: ñull commentedThe error goes further then the described
I applied the patch and try to delete and now it says:
It does not allow me to ename the menu in order to make it shorter. This should be an error message before you create the menu, not after it is already created.
Comment #9
jide CreditAttribution: jide commentedSorry everyone for not being very active lately. I will have a look at recent issues. Something went wrong with CVS releases I guess, those issues should have been fixed, I'll have a look at this soon.
Comment #10
geerlingguy CreditAttribution: geerlingguy commentedRunning into this issue here, too... won't let me edit or delete any menus used by OG Menu module.
Comment #11
ñull CreditAttribution: ñull commentedbump
The 27 character bug is a Drupal core bug reported here and fixed in the dev version. Release 6.21 should have it fixed. That would mean that the proposed patch here is valid and fixing the other issue. Please apply and release.
Comment #12
jvieille CreditAttribution: jvieille commentedThe bug is still there, looks like the patch is not yet applied.
However most of the stuf in the patch is no longer relevant.I made it working properly by just changing this line:
I think this is tested and reviewed since 2 years. Please committ!
Edit: the patch works perfectly!
Comment #13
fuerst CreditAttribution: fuerst commentedPatch #1 is not in the 6.x-2.x-dev branch but works well there.
Comment #14
pfrenssenClosing, since the Drupal 6 version of OG Menu is no longer supported. If this issue is still relevant for the currently supported versions (D7 and D8) then feel free to update the version and reopen the issue.