go41

wordpress 3.2 Edit Post visual editor not working json missing

von Joern am 7. Jul. 2011 | Keine Kommentare

My problem: upgrading to WordPress 3.2 worked flawless, the sites worked as before, admin is even nicer than before.

BUT: As soon I switched to the Edit Post window, any javascript didn’t work, no visual editor, no logout dropdown, no Screen Options dropdown.

I disabled all plugins, switched to twentyten and twenty eleven, ‚reset‘ plugins folder, no chance.

So I had a look at my sites error log and found:

PHP Fatal error: Call to undefined function json_encode() in /srv/www/vhosts/mysite.com/httpdocs/wp-admin/includes/class-wp-list-table.php on line 905, referer: http://mysite.com/wp-admin/edit.php

Clearly to see: undefined function json_encode() called by wp-admin/edit.php

Checking my phpinfo() there was no json to see! So on my plesk 9.5.4 json is not enabled!?

The vServer is running on plesk 9.5.4 on a suse 10.3 with php 5.2.11-0.1

To enable this json stuff I found you need json.so and json.ini in folders mentioned below.

Looking on the servers root there is no json.so in \usr\lib\php5\extensions\ and there is no json.ini in \etc\php5\conf.d\

Lucky I found the correct rpm packet ‚php5-hash-5.2.11-0.1.i586.rpm‘ here:

http://autoinstall.plesk.com/PSA_10.0.1/update-rpm-SuSE-10.3-i386/

I downloaded this .rpm, opened up with 7-zip and copied the two included files to the folders they should be in. (using winscp)

After a Restart VPS in my Virtuozzo Panel I went back to my sites phpinfo to find a new entry:

json
json support enabled
json version 1.2.1

Now back to the dashboard of WordPress 3.2 checked if the visual editor in Edit Post is working now? YESSSS!

wordpress 3.2 no visual editor Artisteer - web gn generator for Joomla templates, Wordpress themes, Drupal themes, Blogger templates and DNN skins Divi The most por premium WordPress theme in the world (stats from BuiltWith.com) and the most powerful theme in our collection, including the visual Description. Resize, optimize and compress all of your images with the incredibly powerful and 100% image smusher, brought to you by the WordPress - download and software has developed into one of the most robust and customizable website development platforms on the Internet today and only continues to grow. As a , Tags: wordpress, free, download, I thought you might like to kw about the responses we are getting to our new networking sites – one social ( Tall Poppies) and one for financial

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.