Problem with WordPress visual rich editor

Cukup lama juga gw bermasalah dengan hal ini, wordpress dan php foo gw sangat sangat lemah (yeah yeah…), di salah satu server yang gw maintain sangat sulit utk menulis blog, karena visual rich editor nya ngadat. Gw dah berkali-kali upload ulang, dan bahkan mengurangi berbagai security optimized seperti .htaccess dll namun visual editor nya tetap ngadat. Sampai akhirnya ada orang yg posting di forum wordpress ttg masalah ini dan pemecahaannya, bugs nya sederhana…bahkan wordpress 2.3.1 pun bermasalah. Masalah sebenarnya terdapat pada penanganan wordpress terhadap webserver yang tidak mendukung gzip encoding. Dengan mengikuti solusi pada posting di sini, maka masalah slsi :).

 

——-

So I had a similar problem, but it was definitely an issue with the server not supporting gzip properly. (Everything worked on my local server). I went in to this file:

/wp-includes/js/tinymce/tiny_mce_gzip.php

and found this code:

if ((in_array(‘gzip’, $encodings) || in_array(‘x-gzip’, $encodings) || isset($_SERVER[‘—————‘])) && function_exists(‘ob_gzhandler’) && !ini_get(‘zlib.output_compression’) && ini_get(‘output_handler’) != ‘ob_gzhandler’) {
$enc = in_array(‘x-gzip’, $encodings) ? “x-gzip” : “gzip”;
$supportsGzip = true;
}

Immediately after I overrode the $supportsGzip var with a false value by inserting the following line after the block reference above:

$supportsGzip = false;

Bingo! everything works fine now.

—–

 

Advertisements

4 thoughts on “Problem with WordPress visual rich editor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s