Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
wscci
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2011 at 00:01 UTC
Updated:
29 Jul 2014 at 20:11 UTC
There is a core issue that has a fix, apply this fix before creating a patch so we can test the patch properly.
Comments
Comment #1
webchickPer catch, and blessed by Larry, moving this and all other WSCCI issues to the Drupal core queue.
Comment #2
Crell commentedIs this from #1329914: Ensure $_GET['q'] is set before calling drupal_normal_path()? That just got committed so a simple merge should take care of it. If not, please link to the core issue that it relates to.
Comment #3
aspilicious commentedNo it's not that one. I'll search for the issue when I'm back home.
Comment #4
aspilicious commented#1337076: Clean up the many active / preferred things in menu API here is it
Comment #5
pounardThis fixes the issue temporarely until all other consistency issues are solved.
I added the Tracker::disableTracking() method locally on my development environment which allows to pragmatically force a tracker to be disabled so that kind of really low level procedural code can mess up with internals such as $_GET['q'] and ensure the menu system still work.
I know this is not really elegant, but it actually avoid the ugly user page WSOD and should avoid some others as well.
In preparation of core inclusion, this can be a totally legit workarround in order to have at least the base code being commited which would allow us then to proceed to deeper problems fix in more atomic issues.
Comment #6
Crell commentedThat's a possibility. I have also been pondering an "unpoppable" context class that would never get popped for use super-early, at least until we can refactor the need for that out. The end result is effectively the same.
Thoughts, anyone else?
Comment #7
pounardI'm ok with the super early context, but my guess is that some modules will probably attempt to override $_GET['q'] anyway, one way or another, I don't really see it being super useful in that particular case. For instance, when user_page() is being called, everything's already bootstrapped, active menu handler run etc... Context overrides may already have happened. My guess is that changing the menu router item being runed was an error from the beginning, we should find a nice solution for this kind of polymorphic menu entries that doesn't involve messing with the context. But this has to be done later once first WSCCI iteration is OK for core inclusion and done.
Comment #8
aspilicious commentedPlease now that this issue is fixed with the patch I linked in the summary and that it's the correct fix for this issue!
Don't derail this with extra features...
I'm serious about this I don't think we need to introduce extra features at this point.
So I don't know why you put your time in making workaround when they are not needed...
Comment #9
Crell commentedNo longer relevant.