anikesh / web-optimizator

Automatically exported from code.google.com/p/web-optimizator
0 stars 0 forks source link

Confirming step 3 (save config file & add wbo changes to index.php) is not completed #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Re. http://code.google.com/p/web-optimizator/issues/detail?id=62#c3
2. Still the same buggy behavior as described in 1-b The following URL
produces content encoding error.
3.
http://sankt-georg.info/wbo/cache/optimizing.php?web_optimizer_stage=60&username
=xxx&password=xxx&auto_rewrite=1

What is the expected output? What do you see instead?

Confirming step 3 to save configuration to config file and to add the wbo
changes to index.php is not completed.

What version of the product are you using? On what operating system?

0.5.8 (Rgression from 0.5.6 where it was working fine, 1st seen in 0.5.7.5
(0.5.7 not tested))

CMS used is Textpattern 4.2.0. Index.php did not change and rights are 644.

Please provide any additional information below.

FYI: The only change 'enable mutiple hosts' was saved to config file.
FYI: The wbo additions to index.php were deleted/not saved/not added. I had
to restore a wbo enabled copy of index.php.

Still getting the Content-Encoding-Error

FYI: 'Try again' leaves the URL in the address line but the homepage
http://sankt-georg.info loads.

Original issue reported on code.google.com by merzmar...@gmail.com on 8 Sep 2009 at 12:54

GoogleCodeExporter commented 9 years ago
thx for info. It seems double gzipping causes this issue, but why only on 
stage=60, not 
on stage=20, 30, or 40. On stage 60 data:URI should be applied through prepared 
CSS 
file. And this process can output some errors, that can't be shown as they have 
incorrect Content-Encoding (not gzip, raw text).

Can you please somehow try to disable gzip in Textpattern and get the error 
message 
from Web Optimizer? (and/or disable gzip in Web Optimizer)

Original comment by sunny.dr...@gmail.com on 8 Sep 2009 at 3:40

GoogleCodeExporter commented 9 years ago
There is no gzip enabled in textpattern (Since wbo is compressing fine via PHP 
the
full page cache solution asy_jpcache is disabled).

First try: I disable all gzip via PHP options. Saving in wbo UI I get a bunch 
of errors:

URL as before:
http://sankt-georg.info/wbo/cache/optimizing.php?web_optimizer_stage=60&username
=xxx&password=xxx&auto_rewrite=1

Warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'M' in
/.../wbo/controller/compressor.php on line 1344

Warning: Cannot modify header information - headers already sent by (output 
started
at /.../wbo/controller/compressor.php:1344) in 
/.../wbo/controller/compressor.php on
line 467

Warning: Cannot modify header information - headers already sent by (output 
started
at /.../wbo/controller/compressor.php:1344) in 
/.../wbo/controller/compressor.php on
line 288

Result: wbo integration in Textpattern index.php is gone
Result: Disabled gzip options are saved in config file.

Second try: Leaving the state like it is returning to wbo UI. Changing nothing. 
Gzip
is disabled (!):

URL:
http://sankt-georg.info/wbo/cache/optimizing.php?web_optimizer_stage=60&username
=xxx&password=xxx&auto_rewrite=1

Warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'M' in
/.../wbo/controller/compressor.php on line 1344

Warning: Cannot modify header information - headers already sent by (output 
started
at /.../wbo/controller/compressor.php:1344) in 
/.../wbo/controller/compressor.php on
line 467

Warning: Cannot modify header information - headers already sent by (output 
started
at /.../wbo/controller/compressor.php:1344) in 
/.../wbo/controller/compressor.php on
line 288

Result as above. And the cache was purged (didn't check that in the first try).

Sorry, but that's all I get at the moment when saving the configuration fom the 
UI.

Rollback: Activate all gzip options in config file again
Rollback: Copy index.php backup to home directory

Original comment by merzmar...@gmail.com on 9 Sep 2009 at 9:50

GoogleCodeExporter commented 9 years ago
thank you very much. You have unobtrusive logic enabled, so one of the actions 
leads to 
an error. Please find in compressor.php
@Mail.ru
and replace it with
\@Mail.ru

Fix will be included into 0.5.9

Original comment by sunny.dr...@gmail.com on 9 Sep 2009 at 10:38

GoogleCodeExporter commented 9 years ago
Searching case sensitive for the whole word @Mail.ru doesn't find anything.
I only find Rating@Mail.ru three times in two lines.
OK, I replaced Rating@Mail.ru with Rating\@Mail.ru and saved that to
wbo/controller/compressor.php.

Test: OK > "Your configuration has been successfully saved"

Looks fine so far.

Original comment by merzmar...@gmail.com on 9 Sep 2009 at 11:50

GoogleCodeExporter commented 9 years ago
ok, thank you once more. I hope there were the last bugs with your website :)

Original comment by sunny.dr...@gmail.com on 9 Sep 2009 at 12:03