Having Strange Errors Utilizing Gzip in WordPress 2.9 and 2.9.1?

For­tu­nately your not alone. A recent bug fix was just released which addresses an error which is received while updat­ing the Word­Press core, as well as Word­Press plu­g­ins. This error typ­i­cally effects http.php, located at wp-includes/http.php, and looks sim­i­lar to the code listed below.

1
PHP Warning: gzuncompress() [<a href='function.gzuncompress'>function.gzuncompress</a>]: data error in /home/domain/public_html/blog/wp-includes/http.php on line 1824

We haven’t actu­ally run into the issue on our servers after enabling Gzip in Word­Press. But a few of our users have. As of 1/10/2010 the bug fix is as fol­lows. Sim­ply save the attached file, open it using you’re favorite text edi­tor, then copy and paste it to your http.php file. Always remem­ber to save Word­Press files in a UTF-8 for­mat, and set your FTP pro­gram of choice to Binary mode. These sim­ple steps will ensure your servers file integrity.

http.php

We’ve tested this patch using 3 dif­fer­ent themes, as well as two dif­fer­ent host­ing providers. Replac­ing the file prior to an update from 2.9 to 2.9.1, with Gzip already enabled, you should receive no errors. This bug fix will be included in upcom­ing releases of Word­Press, ie. 2.9.2 and on. So please keep this in mind.

Addi­tion­ally, the orig­i­nal code can be found from Word­Press Trac here.

Tell us if this arti­cle was help­ful, let us know what you think by leav­ing a com­ment below. Happy computing.


Was this article helpful? Here's a few related articles which may also interest you.

Related Posts:


2 Comments to “Having Strange Errors Utilizing Gzip in WordPress 2.9 and 2.9.1?”

  1. Sanchez says:

    You my friend are a life saver. I kept get­ting these funny pink error mes­sages on my posts when I left them open. Then when I updated I saw that same mes­sage. I already had 2.9.1 so I rein­stalled with the updated script and BO YAAA. No Errors!!!!!!!!!! Thanks bro…

  2. Marola says:

    Hey, I read a lot of blogs on a daily basis and for the most part, peo­ple lack sub­stance but, I just wanted to make a quick com­ment to say GREAT blog!.….I“ll be check­ing in on a reg­u­larly now.…Keep up the good work! :)

Leave a Comment