Fresh 7.14 install, enable nodequeue module via drush, no menu link appears in the Structures menu until I clear the cache. Same for views_ui. When I enable through the Modules page, everything works fine.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stewart.adam’s picture

I've been experiencing this too, I've become accustomed to running 'drush cc all' now after any 'drush en' command.

webchick’s picture

Some people are reporting this happening in the Edit module issue queue, too: #1665612: AJAX errors when installed using Drush

I've seen this happen on Views UI as well, afaik. Not sure when it started.

webchick’s picture

Priority: Normal » Major

This feels a bit more important than "normal."

Dave Reid’s picture

Confirmed.

jonhattan’s picture

Version: 7.x-5.4 »
Assigned: Unassigned » jonhattan
jonhattan’s picture

Status: Active » Needs review
FileSize
1.91 KB

In the mentioned issue we removed a call to system_modules_submit() that do a cache clear at the end.

Attached patch calls to drupal_flush_all_caches() and also adds a test.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Perhaps add a comment above the flush lines.

jonhattan’s picture

Status: Reviewed & tested by the community » Fixed

Committed, with comment.

chaby’s picture

Should be great to also apply it for drush_module_uninstall().

For e.g, i alter an existing entity declared by an another module. I alter schema (using hook_schema_alter), added fields to tables with a hook_install() but also alter the entity info (hook_entity_info_alter).

When we uninstall the module, it will drop fields by implementing a hook_uninstall (which seems to update schema ?) but entity info are not cleared. As a result, when entity api try to load an entity of this type, it used a corrupt base table schema.

If i uninstall this module via UI, i thinks it will call something like drupal_flush_all_cache, which call entity_info_cache_clear() to update entity schema. And no errors occured.

Here a simple patch attached.

Did i make something wrong ?

chaby’s picture

Status: Fixed » Needs review
jonhattan’s picture

Status: Needs review » Active

So in your case it works via web and not with drush?

This is the submit handler for uninstalling modules via web:
http://api.drupal.org/api/drupal/modules%21system%21system.admin.inc/fun...

It doesn't flush caches, or I'm missing something.

chaby’s picture

Status: Active » Fixed

You're right. My mistake to think that this error occured on uninstall (it appears when disable the module) and this patch works great !

Thanks and sorry for this mistake

webchick’s picture

Rock!! Thanks, jonhattan!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jherencia’s picture

@jonhattan, when will the next stable version be released? I think this is quite important.

Thank you very much for the work done :).

bailey86’s picture

Version: » 7.x-5.4

I can confirm that when I upgraded from 5.4 to 5.8 this issue was resolved.