Closed (fixed)
Project:
Drupal core
Version:
4.7.11
Component:
base system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2004 at 13:19 UTC
Updated:
5 Dec 2009 at 09:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
deekayen commentedI verified this in HEAD for the archive module.
Comment #2
tostinni commentedThis still apply to HEAD, the procedure to reproduce the bug is the right one.
However, I don't understand exactly why the block keep appears on this page, and not on the others pages. The problem is that looking at the blocks table, "archive" block stay there even if it doesn't appear on other pages (on module page yes it does). When I enter a new page, saying home, archive block isn't there but is still on the db.
The cache is flushed, because archive seems not to appear on the entry giving me the menu, but the current page keep the old cache entry (well I guess).
Ok so I proposed a radical way to correct this : rehashing blocks after saving the module configuration. So I just add a
_block_rehash();after themenu_rebuild();, it's a little dirty but do the trick. If you have any suggestion about a better way to do this ;)Comment #3
drummI can work on this.
Comment #4
drummI decided to implement a hook system for this. As a side effect:
- system_listing_save() only does database things. The UI things such as drupal_set_message() are now separated into the calling function.
- The status message for saving module is now:
* The aggregator module has been disabled.
* The archive module has been enabled.
instead of "The configuration options have been saved."
- The theme-specific things in system_listing_save() are not there anymore.
- There is also a hook called when modules are enabled.
I think I'll go write some documentation for the two new hooks now.
Comment #5
drummHere is some hook documentation:
Comment #6
drummThis patch is now fubar. Please feel free to resubmit the concept in update #2 by tostinni in patch form.
Comment #7
tostinni commentedSorry I didn't understood "This patch is now fubar." ?
This patch has been abandonned ?
Comment #8
drummYes, I am not going to work on my approach currently. The patch was broken by the recent addition of multiple block regions. I may have time in the future.
I recomend making a real patch file for the simpler approach as describe in update #2.
Comment #9
tostinni commentedOk here goes the patch.
Comment #10
Uwe Hermann commentedPatch still applies, but I didn't test it.
Comment #11
drummComment #12
Crell commentedI was unable to duplicate this using the instructions above. Setting to closed, unless someone else is still experiencing it.
Comment #13
attila-1 commentedThe issue is still reproducible for Drupal 4.6 and Drupal 4.7.
The blocks of the last disabled module still remain displayed when the 'modules' page is accessed from the administration section.
I could not reproduce the issue on Drupal 5.20 and on Drupal 6.14