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.

Comments

robert gomez’s picture

StatusFileSize
new9.59 KB

I'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.

plach’s picture

Title: Disabling and re-enabling developer modules behaves badly with Views UI. » Class registry is not rebuilt when enabling/disabling dev modules
Priority: Normal » Major
Status: Active » Needs review
StatusFileSize
new448 bytes

I 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.

Triskelion’s picture

Applied patch, then disabled and re-enabled devel modules on the affected sites. Works like a charm. Thank you @plach.

plach’s picture

RTBC then? ;)

plach’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Tentatively marking RTBC per #3.

dave reid’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

The 'disable development modules' functionality has been removed as of #2392519: Remove 'Disable Development modules'.