Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2009-09-30 22:48:37

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Zoiks! Is this plugin compatible with 4.2.0 only? When I added it to my page template (4.0.8) I get something crazy, which looks like this

What could be the problem?

Offline

#22 2009-10-01 12:37:31

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Zoiks! Is this plugin compatible with 4.2.0 only? When I added it to my page template (4.0.8) I get something crazy, which looks like this
What could be the problem?

Plugin work with 4.2 and 4.0.x too.
How was uploaded this picture or how was post it?

Now I upload tiger picture to twitpic.com – all ok.


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#23 2009-10-01 13:28:21

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

That is a screen snap of what my site looked like after installing aks_header. I uploaded it to twit pic just to make life easy. My question is: what am I doing wrong with the plugin to have it output a bunch of random-looking symbols?

Offline

#24 2009-10-01 14:05:03

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

nabrown78 wrote:

My question is: what am I doing wrong with the plugin to have it output a bunch of random-looking symbols?

Possible it conflict with other plugins. :(

Please, install last version aks_header (after install plugin order must be = 1)

Put to page template

<txp:aks_header strip="0" gzip="0" /><!DOCTYPE html  . . .

and insert this code to any article

<txp:php>print_r(ob_list_handlers());</txp:php>

give me output.

Last edited by makss (2016-01-16 18:38:31)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#25 2009-10-01 14:23:18

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

makss – Here is what I see in my article:

Array ( [0] => zlib output compression [1] => default output handler [2] => aks_header_callback [3] => default output handler ) 

Does that give you any clues?

Offline

#26 2009-10-01 14:26:14

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Here is my list of active plugins. They all seem to have an “order” of 5, except for aks_header:

aks_header
asy_sitemap
gbp_admin_library
jmd_img_selector
nab_if_future
pap_contact_cleaner
rss_admin_show_adv_opts
rss_auto_excerpt
smd_where_used
tru_tags
upm_image
zem_contact_lang
zem_contact_reborn

Offline

#27 2009-10-01 14:36:31

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

makss – Here is what I see in my article:
Array ( [0] => zlib output compression [1] => default output handler [2] => aks_header_callback [3] => default output handler )

Your already use “zlib output compression”. Set attribute gzip=“0”

<txp:aks_header strip="1" gzip="0" /><!DOCTYPE html  . . .

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#28 2009-10-01 14:42:13

nabrown78
Member
From: Boston, MA, USA
Registered: 2006-10-04
Posts: 289
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Oh…D’oh! Thanks so much for your patience.

Is there any easy way to determine if a site is using gzip already? I did not think my web host offered mod_gzip. I certainly don’t think I did anything to enable it…Hm.

Offline

#29 2009-10-01 15:10:20

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

nabrown78 wrote:

Is there any easy way to determine if a site is using gzip already?

I use console utility wget (unix,linux,windows). Sample request:

wget -d --header "Accept-Encoding: gzip,deflate" http://yoursite.com/

Response (if used compression):
Content-Encoding: gzip
or
Content-Encoding: deflate

.

New version aks_header 0.3.3c
  • Added check if already using “zlib output compression”

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#30 2009-10-01 15:56:08

trenc
Plugin Author
From: Cologne
Registered: 2008-02-27
Posts: 562
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Is there any easy way to determine if a site is using gzip already?

If you have Firefox, install the addon webdeveloper toolbar.
If installed you will find in the toolbar under »information« the last point »Show Response Header«. If you find a Content-Encoding: gzip in the output, so gzipping is enabled.

Offline

Board footer

Powered by FluxBB