After a recent module update, I had to re-enable the developer modules on a production site to get back into the Views UI. After doing so, the path /admin/structure/views was completely inaccessible, and the Structure submenu now included Add new view, Add view from template, and Settings from the Views UI. The Views item was missing. Clearing all caches restored the Views item, and the /admin/structure/views path became accessible again, however the extra views-specific entries remained. (Flushing just the Administration menu cache did not work.) I have confirmed this behavior on a second production site with a different theme. Both sites are running Drupal version 7.22.
While this is not critical (the Views UI is still usable) it is certainly annoying to have the menus cluttered with unnecessary entries, and to have to go through so many steps to restore the interface.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | admin_menu-rr-2021967-2.patch | 448 bytes | plach |
| #1 | Screencap-2013-06-25 11 43 04.png | 9.59 KB | robert gomez |
Comments
Comment #1
robert gomez commentedI'm seeing this exact same issue on version 7.x-3.0-rc4. I have even tried uninstalling the module completely and re-installing it yet the Views links are still at the top of the Structure menu.
Comment #2
plachI have this issue too: the symptom is what is described in the OP, the root cause is that the class registry is not rebuilt when re-enabling dev modules. In the case of Views this prevents the CTools integration classes to be loaded and so the view listing menu item is not defined. This is why initally the item is not available and child items, which are explictly defined by the Views UI module, are wrongly parented.
The attached patch should fix this issue.
Comment #3
Triskelion commentedApplied patch, then disabled and re-enabled devel modules on the affected sites. Works like a charm. Thank you @plach.
Comment #4
plachRTBC then? ;)
Comment #5
plachTentatively marking RTBC per #3.
Comment #6
dave reidThe 'disable development modules' functionality has been removed as of #2392519: Remove 'Disable Development modules'.