Installed Drupal from drupal-7.x-dev.tar.gz, as was available just now at the time of making this post.
Then installed Admin_menu module from admin_menu-7.x-3.x-dev.tar.gz as available just now
Clicked on "Add new Content > Page" from the admin bar of the Admin_menu
The whole screen turns shaded or black overlay but no dialogues,(see diagram) no content area or textbox appears
Cannot get out of this easily - clicking here and there seemingly shows a frozen screen, so cannot enable or disable anything further. (see diagram)
Follow the above steps to reproduce the error.
Note : Overlay does not come with a warning it breaks Admin_menu. If it does it should.
Comments
Comment #1
vm commentedwhich may explain why sun added a patch here: http://drupal.org/node/659488#comment-2431726 that passed
have you applied the patch?
A warning of any sort at this stage doesn't make sense. Unless the situation remains which I'd doubt.
Comment #2
kaakuu commentedVM # 1
Please click that link and read the patch. I applied it now and re-tested. Nothing happens. Same result as above. If you followed the above steps, then applied the patch, and got no error or problem, kindly let me know, post a screen-shot or better still, post a demo link if possible. Thanks a lot for the prompt reply.
Comment #3
vm commentedI merely asked if you used the patch since it was not committed yet but passed. Thus the answer was no you hadn't but now you have and are faced with the same issue.
Comment #4
kaakuu commentedYes, cleaned cache. No effect.
But you confuse me. Can you please read the patch? Does it mean overlay is disabled from beginning by this patch. If so, if I apply patch now it will have no effect. It means I should install a patched D7 from beginning but since this patch is not yet committed probably you cannot post issue on the current D7 as is. Even if the patch does that, if now one enables overlay and admin_menu the above result will apply, and even with cache cleared. So please do a test and post your results please.
Regarding what is causing the issue, what do you think? The overlay is getting "hanged" here, BSOD or black screen of death, this black or shadowed screen is usually produced by the overlay, not admin_menu.
Comment #5
vm commentedWhats to be confused about? I saw the patch and asked if you used it? You've responded and I've moved past it.
To me this issue seems like putting the cart before the horse with reference to reporting bugs against core with reference to a contrib module. Neither of which have been considered stable and are both only available for testing.
At this point are you sure it's not a bug in admin_menu 7.x-dev? rather than in overlay.module? Have you spoken with tha_sun to confirm the issue is with overlay.module and not with admin_menu?
Comment #6
casey commentedIts a admin_menu issue + overlay issues where already is a patch for but that aren't reviewed/committed yet.
Comment #7
kaakuu commentedVM #5
Please see last two lines at #4 - why I posted here against overlay.module.
If you are confirmed that this is admin_menu problem may be I can post there too but little bit uncomfortable as Sun once "scolded" (figurative usage of language) for posting dupes.
But first, if you have time please let know whether you can reproduce the error. My browser has been latest stable FF in WinXP.
Comment #8
vm commentedThanks casey.
Therefore we can move this issue to that modules issue queue for Sun to take a look. If Sun confirms it's an overlay issue I'm sure he will move it back.
I'll chance getting scolded.
I'm not in a position to test -dev modules against -dev core. Sorry.
Comment #9
vm commentedComment #10
vm commentedBased on casey's edit we can mark this as a duplicate. I wil update this thread with the link to patch thread as soon as I locate it.
Comment #11
kaakuu commentedI confirmed it is the overlay.module.
I disable the overlay.module and admin_menu works as expected.
So I think the overlay.module is causing the problem.
Please post the results you got by following the steps described.
The component here is not just code but overlay.module specifically. I am resetting issue settings once only - please feel free to reset if I am wrong, which I may be. I think my name is not necessary in the issue title. Thanks so much.
Comment #12
vm commentedPlease reread caseys comment.
Comment #13
kaakuu commentedVM # 12
Casey edited his post after I made my post. You also quickly changed the issue settings in rapidfire successions adding to the confusion.
Please reread #11 and
please reset the issue as necessary. I keep this posted so that interested users who have some time can do the test to see whether the results are reproducible or may be forewarned of such incompatibilty as admin_menu is widely used. If you have marked duplicate it is usually customary to post a link to the dup post simultaneously with the status change. Thanks so much for the help.
Comment #14
vm commentedcasey can you link to the patch/es you reference. Seems to me kaakuu would be the perfect person to test the patches already provided since he/she is already neck deep in trying to work with the two.
I'm not sure what patches apply to this issue. I've sorted the list specifically for overlay.module and patches but some of the issues are over my head.
Comment #15
casey commentedI've had a look at admin_menu and this is totally a issue that belongs there. It doesn't contain any code to make it work with the overlay. It should at least use the 'overlay-displace-top' class to work properly.
Further it always adds its javascript to add the toolbar, without checking the page is opened in the overlay.
Besides that it is uses a fixed clickhandler so links on the menu_admin toolbar will never be handled/opened by the overlay.
I read something about clearing cache, so I thought this #649224: Cannot run certain batch processes (tests, update manager, etc) with the overlay enabled issue was related. But that's not even the case here.
Comment #16
casey commentedUh I ment #651086: Cache clearing is an ineffective mess in module_enable() and system_modules_submit().
Comment #17
vm commentedbased on #15 I'm moving back to admin_menu
Sorry Sun.
Comment #18
kaakuu commentedCasey and VM - lot of thanks for heading this issue towards a solution.
@VM I think testing -dev modules and -dev core are really needed for the releases, otherwise how do you take off the 'dev' status! So it will be nice when persons in issue q's can do some sort of test. I am not neck deep in trying to work with the two but I thought that if default D7 ships with this overlay on and people turn on the admin_menu which is so very popular it will be trouble. I noticed this behavior earlier also, and since this is persisting I posted.
So to sum up, till now the findings are-
and #668104: Make overlay respect other click handlers
Comment #19
casey commentedA better look told me that menu_admin actually doesn't use a clickhandler but doesn't apply behaviors to its @runtime added DOM structure (so still an admin_menu issue).
#668104: Make overlay respect other click handlers doesn't need that any more so that'll fix part of this issue.
Comment #20
vm commented@ #18 Understanding the way many modules mainatiners work, by witnessing them in both IRC and the issue queues (core or contrib) as well as recognizing the D7 promise to be ready when D7 is released on their project pages tells me they consistently grab the new -dev of core and test their own modules and tweak as needed when needed.
I have no doubt that Sun as well as other maintainers will ensure that their modules work with D7 when D7 is released. There is a concerted effort to do so on the part of many.
Therefore my testing of a module right now with so many outstanding core issues and patches wouldn't make life any easier for anyone and just clutter issues or issue queues and likely get many "bug reports" marked as duplicates. Especially where I can't provide a patch to help. I choose to create as little static as possible over issues that arise in any of the 2 -dev releases rolled every day. D7 isn't even at alpha yet. There is still some path to be walked with reference to core. Contrib has plenty of time to do their thing.
If I was a maintainer of a module, I wouldn't want to be checking my code every 12 hours to tweak my -dev module only to tweak it back as core continues to get worked on. I'd get most of the module ported, find the issues I'm likely to have then track those issues.
Personally, I test core in my local development machine when I'm bored or want to see the changes implemented since I installed last. When D7 core is ready and released as Beta or more likely RC, I'll test modules against core and report bugs I find at that time. Bugs today may not be bugs tomorrow.
Beyond that Sun has already stated that he's gotten admin_menu to work with the overlay.module in the issue previously linked to and that it may provide backports to fix admin_menu for D6, if I understand his comment correctly.
Comment #21
redpuma commentedJust installed 7.0-dev with download via drush. Installed using option for preconfigured modules. Decided I could not operate with new admin system and installed Admin menu. It would not display, cleared cache, checked permissions, looked to see if it was a configuration issue. Found this issue, disabled Overlay and hey presto Admin menu works.
However the
top "admin menu type" menu(edit) Toolbar is now hidden under the Admin menu.Edit: I guess disabling that Toolbar solves that other issue.
Comment #22
sunSorry guys. I have zero interest in supporting Overlay module. My patch for Drupal core actually disabled it by default.
I starred on its code for minutes, quickly tried to resemble what Toolbar module is roughly doing, but to no avail. If someone else wants to work on it, be my guest.
To make it work, it needs to work with disabled caching first. To disable admin_menu's caching, open your settings.php and insert the following at the end:
When that works, you can comment out those lines and prevent the client-side caching from running in the Overlay.
Non-working patch attached.
Comment #23
smk-ka commentedI'm not sure if I understand this issue, as it seems to have come a long way, mixing up overlay, the toolbar and whatnot ;)
Basically, what I was looking for, was to prevent admin menu from rendering again in the overlay. This is as easy as adding an
overlay_get_mode()check in hook_init, to determine if the current page is to be rendered in the overlay vs. a regular page (the same check seems to also be missing in core's toolbar.module, but that's another issue).So here is my solution to that.
Comment #24
sunAFAICS, Toolbar uses a different approach, based on some weird theme region hacks via hook_system_info_alter():
http://api.drupal.org/api/function/overlay_system_info_alter/7
http://api.drupal.org/api/function/toolbar_system_info_alter/7
My previous patch was an attempt to implement it in the same way, but TBH, I didn't completely understand those theme region hacks yet.
Comment #25
smk-ka commentedAFAIK (some more wild guessing) the overlay supports updating regions outside of itself, for example after adding a new content type the toolbar needs a refresh. hook_system_info_alter is used to tell the overlay in what regions to look for updated content. I was simply irritated by the doubled display inside and outside of the overlay, and whether this is a bug or not (it looks wrong at least).
Comment #26
sylus commentedI really don't know if this helps at all, but to at least temporarily disable admin menu in the overlay, I found pasting: "module_invoke('admin_menu', 'suppress');" after line 78 (if $custom_theme != $admin_theme ) in the overlay.module seemed to make everything work. I then added padding-top: 100px to #overlay-wrapper to bring the overlay down, then everything seems to work great. Knowing this I don't believe it should be too hard to create an override in the template file.
Hope this helps!
Comment #27
tsi commentedsubscribe
Comment #28
gravit commentedSince admin menu is already supressing its own display on AJAX requests, couldn't we just use this same methodology to suppress page requests for an overlay? Seems like adding this at the top of admin_menu_init is an easy way to do it.
Or, this code could be broken down and duplicated between the admin_menu and admin_menu_toolbar modules if you weren't worried about DRY and wanted to limit the overhead of calling admin_menu_supress -
Comment #29
gravit commentedAs of Drupal 7 alpha 6, I have no issues with the solution I posted above. This seems to be the cleanest and simplest way to deal with the issue in the admin_menu module. Update the lines in "admin_menu.module" and "admin_menu_toolbar.module" that are disabling admin_menu on ajax requests to also disable the menu in an overlay:
Comment #30
sunI'm not able to reproduce this issue anymore.
Comment #31
David Stosik commentedUsing last admin_menu dev version on Drupal 7.2, I can still see the admin bar is rendered a second time inside the iFrame. Using Firebug, I can see the admin_menu bar is once inside the iFrame, and once in the parent page (the last one getting over the other).
Isn't this what the issue was all about ?
At least, if we keep the two bars, it would be better if the one we can see is the one in the overlay, so that the active trail means something...
You'll find a commented screenshot attached. :)
Comment #32
rickyd1 commentedI was have this issue today.
Running Drupal 7.7
Admin Menu 7.x 3.0 rc1
The double drop down bar was annoying. Until a fix is implemented, I decided to remove the menu from the overlay iframe with css. Since the admin menu has a higher z-index, the admin menu on the page will apear above the overlay iframe.
My CSS
.overlay #admin-menu {
display:none;
}
Hope this helps people that come here looking for a fix.
Comment #33
jeffschulerSee also #1025846: [PATCH] Duplicate admin menu dropdown when Overlay enabled.
Comment #34
sunSimilar to @smk-ka's #23, but actually setting admin_menu_suppress()'s static to prevent any further invocations down the line.
Comment #35
dimitriseng commentedD7.12 and Admin Menu 7.x-3.0-rc1. I had the same problem and I had initially used patch #10 from #1025846: [PATCH] Duplicate admin menu dropdown when Overlay enabled which resolved the issue, but that issue was marked duplicate of this one. So, I have tested #34 here and this resolved the issue too, thanks. Should we move forward with this one then?
Comment #36
dimitriseng commentedD7.12 and Admin Menu 7.x-3.0-rc1. As per my previous post #35, patch #10 from #1025846: [PATCH] Duplicate admin menu dropdown when Overlay enabled had resolved the issue. However, I then tested #34 here as the other one was closed as duplicate. This seemed to be working ok as now the duplicate menu is removed, but I just realised that when this patch is applied the "Adjust top margin" setting in the Admin Menu settings is not working, so even when it is checked the top margin is not adjusted, resulting in content being hidden from the Admin Menu toolbar. This works correctly with the patch from the other issue.
Can you please check? Thank you.
Comment #37
sunI've just committed #502408: Move invocation/processing into hook_page_build()
Can you check whether this issue still exists with the latest code?
Comment #38
Anonymous (not verified) commentedI tested the latest 7.x-3.x and it no longer is giving me dupe menus, or so it seems. This has been an annoying issue with admin_menu in D7 up until now. Glad it's (hopefully) gone.
Comment #39
pfructuoso commentedI have this issue with last admin_menu version (7.x-3.0-rc1). It is easier to see if you have different theme for the administration and the font-size is different as well.
The patch in #34 works for me.
Comment #40
sun#502408: Move invocation/processing into hook_page_build() fixed this issue.