Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2010 at 00:25 UTC
Updated:
15 Mar 2010 at 11:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
aspilicious commentedNice catch, took me 4 minutes to understand what you were talking about.
To make this clear for people like me:
- got to /admin/structure/block
- watch the secondary tabs
- that one will always use garland as active tab
What has to be done:
- If you go to that page, redirect to admin/structure/block/list/$currentTheme
Comment #2
bleen commentednote that if you clear the cache after switching themes, then everything works as expected
EDIT: If you're just coming to this issue, you can probably skip to #14
Comment #3
bleen commentedThis patch does what aspilicious suggests in #1
The root of the problem is that the $default_theme is getting cached in the block_menu function.
Comment #5
aspilicious commentedif #2 is true we might have a lucky day cause I think there is an issue somewhere bout clearing cash when switching themes
Comment #6
bleen commented@aspilicious: any idea what issue that might be happening in? I dont see anything anywhere
Comment #7
aspilicious commentedDamnit can't find it... :( I don't have time this weekend, maybe I'm just hallucinating
Comment #8
bleen commented#3: blocks_page.patch queued for re-testing.
Comment #9
bleen commentedTest bot does not seem to want to re test .. here is that patch again because I cant fathom why it failed on the locale module the first time.
Comment #11
bleen commentednow it's complaining about irrelevant block tests ... I dont get this test fail locally. Gonna try testbot one more time because it loves me and if I say nice things about it, it will behave
Comment #13
sunsubscribing
Comment #14
bleen commentedDiscussed this issue in IRC with tha_sun and it seems this is a symptom of the larger problem that the menu_cache needs to get rebuilt when the default theme is changed...
Comment #15
bleen commentedThis is an uber-simple patch to rebuild menu cache upon changing the default theme .... seems to work well.
I tested by:
- got to /admin/structure/block
- watch the secondary tabs
- change default theme
- got back to /admin/structure/block & make sure secondary tabs changed
Comment #16
sunThat test procedure needs to be turned into a real test now ;)
Comment #17
aspilicious commentedAHA I found it!
crosslinking: #690544: Blocks admin (admin/structure/block) requires menu_rebuild() to display settings for current theme
Comment #18
marcvangendOK, so this (yet another) duplicate of #690544: Blocks admin (admin/structure/block) requires menu_rebuild() to display settings for current theme, so I'm marking it as such. The solution in that issue is identical to this one.