Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
http://drupal.org/project/admin_menu v7 sets Content Length in the function admin_menu_js_cache(). But the actual response size must be different because the browser immediately receives the data and then waits another minute before a time-out occurs.
header('Content-Length: ' . strlen($content));
If I comment the line out, it all works fine. I also suspected the gzip logic in the same function, but actually commenting out that block of code makes no difference.
(The visual effect is that the toolbar takes one minute to appear, so this bug might be misunderstood as a caching or permissions problem.)
Comment | File | Size | Author |
---|---|---|---|
#10 | admin_menu.js-cache-length.10.patch | 587 bytes | sun |
Comments
Comment #1
omega8cc CreditAttribution: omega8cc commentedI tend to think that it is module bug. Just look at its issue queue - there are many similar reports. Example: http://drupal.org/node/442560
Does removing this header breaks anything or just fixes the issue? Then maybe move this issue to their queue?
Comment #2
omega8cc CreditAttribution: omega8cc commentedOr this: http://drupal.org/node/442560#comment-4286596
Comment #3
omega8cc CreditAttribution: omega8cc commentedIf this is true that it is broken because it is unaware of possible aggregation enabled, then it is really broken module/code.
Comment #4
omega8cc CreditAttribution: omega8cc commentedComment #5
omega8cc CreditAttribution: omega8cc commentedIt is confirmed that this module is broken when the D7 site runs on PHP 5.3.10.
Everything works fine again when the site is switched back to PHP 5.2.17.
So it is not really BOA bug.
Comment #6
markwk CreditAttribution: markwk commentedOk. I understand why this admin_menu issue appeared once D7 sites got bumped to php 5.3 on recent upgrade. Thanks.
Comment #7
simeI guess I should move this to admin_menu then.
Comment #8
jamesfk CreditAttribution: jamesfk commentedSuffering from the same problem with admin menu timing out on PHP 5.3 moving to admin menu
Comment #9
omega8cc CreditAttribution: omega8cc commentedThis fix should do the trick: http://drupal.org/node/442560#comment-2692220
It is already in the BOA head: http://drupalcode.org/project/barracuda.git/commit/c49796e
Comment #10
sunLet's hope that attached patch fixes this issue.
Thanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.