I don't see any files in files/advagg_* and pay attention to the double "fr" in [content_location] line
stdClass Object (
[request] => GET /fr/sites/default/files/advagg_css/css_missing2928151681324112848_0.css HTTP/1.0
Host: guides-israel.com
User-Agent: Drupal (+http://drupal.org/)
Connection: close[data] =>
404 Not Found
Not FoundThe requested URL was not found on this server.
[protocol] => HTTP/1.1
[status_message] => Not Found
[headers] => Array (
[Server] => Apache
[X-Powered-By] => PHP/5.3.3-7+squeeze3
[Cache-Control] => public, max-age=900
[Last-Modified] => Sat, 17 Dec 2011 09:07:28 +0000
[Expires] => Sun, 11 Mar 1984 12:00:00 GMT
[Vary] => Cookie,Accept-Encoding
[Content-Location] => http://guides-israel.com/fr/fr/sites/default/files/advagg_css/css_missin...
[X-AdvAgg] => Failed Validation. Wrong Pattern.
[Web-Head] => vps156.advomatic.com
[Content-Type] => text/html; charset=utf-8
[Content-Length] => 307
[Date] => Sat, 17 Dec 2011 09:07:29 GMT
[X-Varnish] => 2107914897
[Age] => 0
[Via] => 1.1 varnish
[Connection] => close
)
[error] => Not Found
[code] => 301
[redirect_code] => 404
[redirect_url] => http://guides-israel.com/fr/sites/default/files/advagg_css/css_missing29...
[timer] => Array (
[count] => 1
[time] => 1218.37
)
)
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commented/fr/sites/default/files/advagg_css/
Redirected to/fr/fr/sites/default/files/advagg_css/
, Is that correct? In reality the path should be/sites/default/files/advagg_css/
, Is this correct?this
css_missing2928151681324112848_0.css
is a test to make sure the AdvAgg callback is working; and it appears to due to this header[X-AdvAgg] => Failed Validation. Wrong Pattern.
in the output.Does imagecache work on your server? How does it work for you?
Comment #2
heyyo CreditAttribution: heyyo commentedThanks for your fast answer !
I modified a lot my main htacces, I will switch to vanilla one to see if it's the problem.
Good question ! All my imagecache ares generated I see all of them, but I tested yesterday the fast404 module, with the settings "Deny Imagecache generation URLs to anonymous", I soon as I did this all my imagecache wasn't available for anonymous.
In few minutes I will report with new .htaccess.
Comment #3
heyyo CreditAttribution: heyyo commentedI revert back my htaccess file to a vanilla pressflow one, but I have still the same behavior.
But maybe it's related to my modification of includes/language.inc file to insert "language" in path even for default language.
On my website, french is default, and I wanted to add "fr" to each url.
http://blog.mesijan.com/drupal-%E2%80%93-force-path-prefix-for-default-l...
How could I test my imagecache ?
Comment #4
heyyo CreditAttribution: heyyo commentedYes it's correct. Do you have any idea why the language appears in the path ?
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedThe function that generates the URLs in AdvAgg is advagg_build_uri(). My guess is something is implementing hook_file_url_alter and adding
fr
to it. The other option is base_path() is getting modified. If you look at "20 functions call base_path()" section you see that a lot of them are CSS/JS functions in core, so if your having issues here, core might have the same issues as well.Comment #6
heyyo CreditAttribution: heyyo commentedI did
rgrep 'file_url_alter' .
it retiurns me only advagg.module file and a comment inside imagecache.moduleSo it doesn't seem to be the problem.
But seems related to my previous assumption:
Do you know a better way to add language prefix even for default language ?
I don't want to remove it for a question of seo...
To be sure I will enable your module on another multilang website(on the same server but without varnish) where I didn't modified the language.inc
Comment #7
heyyo CreditAttribution: heyyo commentedI have finally tested the same website on my localhost.
I found 2 ways to add prefix language even for the default drupal language path:
In both case I had the problem mentionned in previous post, even with the second option where Drupal core is not modified.
When using in admin/settings/language/configure check "Path prefix only" (so urls in default language are without language prefix)
I have the folowing
Is it what I need to have ?
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedThat debug code looks correct
Comment #9
udvranto CreditAttribution: udvranto commentedI have similar problem. The English site does not generate/load the aggregated JS/CSS, where as the Bengali site does.
Bengali config (working)
English config (not working)
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commented#9 is a duplicate of #1468934: Does not work with sub-domains.
Going to mark this issue as a support request that has been fixed.