Closed (fixed)
Project:
Advanced CSS/JS Aggregation
Version:
7.x-2.4
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2014 at 12:07 UTC
Updated:
8 Mar 2014 at 01:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marcus178 commentedActually this only happen with HTTPRL enable so I guess it's a issue with that.
Comment #2
mikeytown2 commentedThanks this helps to narrow it down. What modules are you using for multilingual support?
Comment #3
mvantuch commentedI'm experiencing the same issue. Modules I am using:
Entity Translation
Internationalization
Field translation
Multilingual content
Path translation
Translation redirect (guess this might have something to do with it?)
Variable translation
Kind of messy, I know :) I could try to narrow it down if needed.
Comment #4
marcus178 commentedAfter turning off the HTTPRL integration it does seems better although it still seems to do it on the odd occasion.
I'm using
Entity Translation
Field translation
Internationalization
Menu translation
Multilingual content
Taxonomy translation
String translation
Comment #5
mikeytown2 commentedhttps://drupal.org/project/i18n
Internationalization
Field translation
Multilingual content
Taxonomy translation
String translation
Menu translation
Translation redirect
Variable translation
https://drupal.org/project/entity_translation
Entity Translation
Comment #6
mikeytown2 commentedWhat's your configuration on
admin/config/regional/language/configure?Comment #7
mvantuch commentedComment #8
mikeytown2 commented$language->directionis used in locale_css_alter.$language->languageis used in locale_js_alter Looks like _locale_rebuild_js uses the $GLOBALS['language'] object so I should just add this into the advagg hash and have it reload on 404/httprl usageComment #9
mikeytown2 commentedCreated this patch. Looking over the code and this issue should only happen for CSS. The internals of JS should be the same.
References to the CSS/JS file could still be an issue if drupal_render isn't working as I expect.
Comment #10
mikeytown2 commentedpatch in #9 has been committed.
Comment #11
mikeytown2 commentedComment #12
marcus178 commentedI have updated to the latest dev but I still see the same issue with HTTPRL enabled
Comment #13
mikeytown2 commentedComment #14
joekiddo commentedThanks for the patch it seems to work better but I still get some /en/en/en/ urls at times. In fact I have to disable the module for now on the production site. I'm running drupal behind HAProxy though with two nodes. The default folder is being rsynced between the two nodes to ensure both nodes have the same aggregragated js/css.
Hope this helps in finding a solution for this.
Thanks for the awesome work mikey
Comment #15
mvantuch commentedJust tried it now and still got the error and also it happened to a JS file rather than a CSS one.
Failed to load resource http://[domain]/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/cs/…cnia3rAAefsVQN8FGhS_LvRn4A__vvv58fy0lB_boAniWHAaQ9nkxR1m3ckgCirug1ITYRw.js
Comment #16
mvantuch commentedGot this message on the reports page today - might help...
Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for css files are not getting through.
AdvAgg will issue a request for a file that does not exist inside of the AdvAgg directory. If AdvAgg sends a 404, everything is ok; if something else sends a 404 then that means that AdvAgg will not be able to generate an aggregate if it is missing as something else is handling the 404 before AdvAgg has a chance to do it. If you are reading this, it means that something else is handling the 404 before AdvAgg can. Raw request info:
stdClass Object
(
[request] => GET /cs/sites/default/files/advagg_css/css__1391004279.css HTTP/1.0
User-Agent: Drupal (+http://drupal.org/)
Host: [domain]
[code] => -1
[error] => request timed out
[redirect_code] => 301
[redirect_url] => http://[domain]/cs/sites/default/files/advagg_css/css__1391004279.css
)
Comment #17
mikeytown2 commentedOn one of the pages that has this error can I get a peak at the raw html? Is it getting rendered correctly and then being redirected to /cs/cs/cs/...?
Comment #18
mikeytown2 commentedThink #2070201: Make compatible with the subdomain module is to blame.
Committed this patch which should take care of the issue.
Comment #19
marcus178 commentedThat certainly seems to have fixed it. Thank you
Comment #20
mikeytown2 commentedFollowing patch has been committed