Closed (fixed)
Project:
Drush
Version:
7.x-5.4
Component:
PM (dl, en, up ...)
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
20 Jun 2012 at 17:58 UTC
Updated:
14 Dec 2012 at 14:34 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | drush-add_flush_cache_uninstall_mod-1649368-8.patch | 452 bytes | chaby |
| #6 | drush-1649368.patch | 1.91 KB | jonhattan |
Comments
Comment #1
stewart.adam commentedI've been experiencing this too, I've become accustomed to running 'drush cc all' now after any 'drush en' command.
Comment #2
webchickSome 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.
Comment #3
webchickThis feels a bit more important than "normal."
Comment #4
dave reidConfirmed.
Comment #5
jonhattanProbably since #1565888: pm-enable and pm-disable throw errors when hidden modules are enabled
Comment #6
jonhattanIn 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.
Comment #7
moshe weitzman commentedPerhaps add a comment above the flush lines.
Comment #8
jonhattanCommitted, with comment.
Comment #9
chaby commentedShould 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 ?
Comment #10
chaby commentedComment #11
jonhattanSo 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.
Comment #12
chaby commentedYou'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
Comment #13
webchickRock!! Thanks, jonhattan!
Comment #15
jherencia commented@jonhattan, when will the next stable version be released? I think this is quite important.
Thank you very much for the work done :).
Comment #16
bailey86 commentedI can confirm that when I upgraded from 5.4 to 5.8 this issue was resolved.