Admin Menu disappears when I set "Optimize JavaScript files" to Enabled

Brian294 - September 23, 2009 - 17:14
Project:Administration menu
Version:6.x-3.0-alpha3
Component:CSS / Browser Support
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I was tweaking some performance settings prior to going live (.../admin/settings/performance) and noticed my admin menu disappeared when "Optimize JavaScript files" is Enabled.

Using:
Drupal 6.14
Chrome 3.0.195.21

Peace,
Brian

#1

smithn.nc - October 6, 2009 - 21:49

Subscribe. I'm having the exact same issues with Drupal 6.14 and Firefox 3.5.3 after enabling javascript aggregation on a Blueprint-based child theme.

#2

brisath - October 11, 2009 - 15:39

Subscribe, same problem.

#3

torstenzenk - October 21, 2009 - 16:54

subscribe with Drupal6.14 and FF 3.0.14. I played around a lot with Core-Performance and Boost these days and noticed that whenever the Core JS Optimization is activated Admin menu diappears AND modules that use javascript like the Feedback module or the DHTML Menu module loose their js-functionality.

#4

SimonEast - October 24, 2009 - 15:45

Subscribing. Also just noticed same problem.

It appears that when enabling CSS aggregations, most of Drupal's CSS is combined, although the admin menu CSS stays separate. When enabling JS aggregation, I don't think the admin menu code is kept separate - perhaps part of the problem.

Simon.

#5

douglas79 - November 5, 2009 - 11:22

Exactly the same problem over here on multiple drupal sites of mine.

#6

silkyD - November 6, 2009 - 15:25

Subscribe.

#7

NigelCunningham - November 10, 2009 - 20:25

Subscribe. Same issue seen under Firefox and IE.

#8

sun - November 12, 2009 - 03:06
Status:active» duplicate

This sounds like a Drupal core bug.

Thanks for taking the time to report this issue.

However, marking as duplicate of #360344: Enabling "Optimize JavaScript files" breaks collapsible form items..
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

#9

silkyD - November 13, 2009 - 17:09

I think that this is a core issue, and it has to do with how Drupal handles comments and whitespace when it compresses both CSS and Javascript files.

There's a patch (here) http://drupal.org/node/444228#comment-2249118 for common.inc. that fixes this issue for me.

I found it because a site I was running using Zen went to WSOD when css optimization was turned on. This same patch, though, seems to fix the javascript issues In Blueprint as well.

 
 

Drupal is a registered trademark of Dries Buytaert.