[prev in list] [next in list] [prev in thread] [next in thread]
List: cherokee
Subject: Re: [Cherokee] Drupal wizard does not work for multilingual
From: David Becerril <email () davebv ! com>
Date: 2009-10-19 9:56:55
Message-ID: 21b751640910190256w1d2e9a3ck96d7ffcdfae325b8 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi!Thanks for updating the wizard.
Yes, drupal has an option to use compression. I tried disabling that option
and keeping the php gzip option in cherokee active but the problems
persisted. I will research deeper in drupal.
The problem with gzip compression was not only for multilingual sites but
with files sent via php.
I will report what I find as soon as I can.
Again, thanks for submitting the patch.
BR,
David.
_______________________
http://geek.davebv.com
2009/10/19 Taher Shihadeh <taher@unixwars.com>
> I though so, but didn't find it at first glance. However, paths also seem
> to work slightly differently for English vs non-English content, so maybe it
> is something related to the multilingual module itself.
>
>
> Antonio Pérez wrote:
>
>> Hello,
>>
>> I'm not a Drupal user, but maybe David has gzip encoding enabled on
>> Drupal config. and on Cherokee, causing a double encoding...
>>
>> On Mon, Oct 19, 2009 at 11:18 AM, Taher Shihadeh <taher@unixwars.com>
>> wrote:
>>
>>
>>> Hello David.
>>> Thanks for reporting. I've just updated the wizard and it will be
>>> shipped with 0.99.25
>>> I wonder if there isn't a workaround that could disable gzip compression
>>> within Drupal itself (I'm not a Drupal user, so I wouldn't know). Or
>>> another workaround at all involving some Drupal configuration. I would
>>> really like to ship the wizard with gzip compression enabled by default
>>> (and in a consistent fashion, both for English and Multilingual
>>> contents).
>>>
>>> David Becerril wrote:
>>>
>>>
>>>> I have been researching on this problem, and I discovered that when
>>>> the php handler, the encoding is set to allos gzip compression, the
>>>> multilingual content does not work!
>>>>
>>>> So my solution at last, and for having all the redirections working,
>>>> is the following:
>>>>
>>>> Uncheck php gzip compression in php encoding.
>>>> Modify the regex rules in default handles such as:
>>>> FROM /(.*)\?(.*)$ -> /index.php?q=/$1&$2
>>>> TO ^/(.*)\?(.*)$ -> /index.php?q=$1&$2
>>>> and
>>>> FROM: /(.*)$ -> /index.php?q=/$1
>>>>
>>>>
>>>>
>>>>
>>>> TO: ^/(.*)$ -> /index.php?q=$1
>>>>
>>>>
>>>>
>>>>
>>>> Hope this helps to drupal users.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, Oct 17, 2009 at 8:21 PM, David Becerril <email@davebv.com
>>>> <mailto:email@davebv.com>> wrote:
>>>>
>>>> I reported some time ago a bug in the Drupal wizard, which
>>>> generated bad redirection rules for multilingual sites.
>>>>
>>>> I solved it by doing the following
>>>> Removed in the "default" behavior the internal redirection given by
>>>>
>>>> /(.*)\?(.*)$ -> /index.php?q=/$1&$2
>>>>
>>>>
>>>>
>>>> and changed the other expresion from
>>>> /(.*)$ -> /index.php?q=/$1
>>>> to
>>>> ^/(.*)$ -> /index.php?q=$1
>>>>
>>>> I am not sure if this will work for every setup buf for now, it
>>>> worked for me in a multilingual site.
>>>>
>>>> Regards.
>>>>
>>>>
>>>>
>>> --
>>> taher@unixwars.com
>>> http://unixwars.com/
>>>
>>> _______________________________________________
>>> Cherokee mailing list
>>> Cherokee@lists.octality.com
>>> http://lists.octality.com/listinfo/cherokee
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>
> --
> taher@unixwars.com
> http://unixwars.com/
>
>
[Attachment #5 (text/html)]
Hi!<div>Thanks for updating the wizard.</div><div><br></div><div>Yes, drupal has an \
option to use compression. I tried disabling that option and keeping the php gzip \
option in cherokee active but the problems persisted. I will research deeper in \
drupal.</div>
<div><br></div><div>The problem with gzip compression was not only for multilingual \
sites but with files sent via php.</div><div><br></div><div>I will report what I find \
as soon as I can.</div><div><br></div><div>Again, thanks for submitting the \
patch.</div>
<div>BR,</div><div>David.</div><div><font class="Apple-style-span" \
color="#C0C0C0">_______________________</font></div><div><font \
class="Apple-style-span" color="#C0C0C0"><a \
href="http://geek.davebv.com">http://geek.davebv.com</a><br>
</font><br><div class="gmail_quote">2009/10/19 Taher Shihadeh <span dir="ltr"><<a \
href="mailto:taher@unixwars.com">taher@unixwars.com</a>></span><br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">
I though so, but didn't find it at first glance. However, paths also seem to work \
slightly differently for English vs non-English content, so maybe it is something \
related to the multilingual module itself.<div><div> </div>
<div class="h5"><br>
<br>
Antonio Pérez wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hello,<br>
<br>
I'm not a Drupal user, but maybe David has gzip encoding enabled on<br>
Drupal config. and on Cherokee, causing a double encoding...<br>
<br>
On Mon, Oct 19, 2009 at 11:18 AM, Taher Shihadeh <<a \
href="mailto:taher@unixwars.com" target="_blank">taher@unixwars.com</a>> \
wrote:<br> <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> Hello David.<br>
Thanks for reporting. I've just updated the wizard and it will be<br>
shipped with 0.99.25<br>
I wonder if there isn't a workaround that could disable gzip compression<br>
within Drupal itself (I'm not a Drupal user, so I wouldn't know). Or<br>
another workaround at all involving some Drupal configuration. I would<br>
really like to ship the wizard with gzip compression enabled by default<br>
(and in a consistent fashion, both for English and Multilingual contents).<br>
<br>
David Becerril wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> I have been researching on this problem, and I discovered \
that when<br> the php handler, the encoding is set to allos gzip compression, the<br>
multilingual content does not work!<br>
<br>
So my solution at last, and for having all the redirections working,<br>
is the following:<br>
<br>
Uncheck php gzip compression in php encoding.<br>
Modify the regex rules in default handles such as:<br>
FROM /(.*)\?(.*)$ -> /index.php?q=/$1&$2<br>
TO ^/(.*)\?(.*)$ -> /index.php?q=$1&$2<br>
and<br>
FROM: /(.*)$ -> /index.php?q=/$1<br>
<br>
<br>
<br>
<br>
TO: ^/(.*)$ -> /index.php?q=$1<br>
<br>
<br>
<br>
<br>
Hope this helps to drupal users.<br>
<br>
<br>
<br>
<br>
<br>
On Sat, Oct 17, 2009 at 8:21 PM, David Becerril <<a href="mailto:email@davebv.com" \
target="_blank">email@davebv.com</a><br> <mailto:<a href="mailto:email@davebv.com" \
target="_blank">email@davebv.com</a>>> wrote:<br> <br>
I reported some time ago a bug in the Drupal wizard, which<br>
generated bad redirection rules for multilingual sites.<br>
<br>
I solved it by doing the following<br>
Removed in the "default" behavior the internal redirection given by<br>
<br>
/(.*)\?(.*)$ -> /index.php?q=/$1&$2<br>
<br>
<br>
<br>
and changed the other expresion from<br>
/(.*)$ -> /index.php?q=/$1<br>
to<br>
^/(.*)$ -> /index.php?q=$1<br>
<br>
I am not sure if this will work for every setup buf for now, it<br>
worked for me in a multilingual site.<br>
<br>
Regards.<br>
<br>
<br>
</blockquote>
--<br>
<a href="mailto:taher@unixwars.com" target="_blank">taher@unixwars.com</a><br>
<a href="http://unixwars.com/" target="_blank">http://unixwars.com/</a><br>
<br>
_______________________________________________<br>
Cherokee mailing list<br>
<a href="mailto:Cherokee@lists.octality.com" \
target="_blank">Cherokee@lists.octality.com</a><br> <a \
href="http://lists.octality.com/listinfo/cherokee" \
target="_blank">http://lists.octality.com/listinfo/cherokee</a><br> <br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
<a href="mailto:taher@unixwars.com" target="_blank">taher@unixwars.com</a><br>
<a href="http://unixwars.com/" target="_blank">http://unixwars.com/</a><br>
<br>
</div></div></blockquote></div><br></div>
_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic