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.)

CommentFileSizeAuthor
#10 admin_menu.js-cache-length.10.patch587 bytessun

Comments

omega8cc’s picture

I 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?

omega8cc’s picture

omega8cc’s picture

If this is true that it is broken because it is unaware of possible aggregation enabled, then it is really broken module/code.

omega8cc’s picture

Project: Barracuda » Octopus
omega8cc’s picture

Category: bug » support

It 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.

markwk’s picture

Ok. I understand why this admin_menu issue appeared once D7 sites got bumped to php 5.3 on recent upgrade. Thanks.

sime’s picture

I guess I should move this to admin_menu then.

jamesfk’s picture

Project: Octopus » Administration menu
Version: » 7.x-3.0-rc1
Category: support » bug

Suffering from the same problem with admin menu timing out on PHP 5.3 moving to admin menu

omega8cc’s picture

sun’s picture

Title: admin_menu sets header Content Length, response times out. » JS cache HTTP response times out due to Content-Length header
Status: Active » Fixed
StatusFileSize
new587 bytes

Let'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.