December 30th, 2009
WordPress 2.9: errors in class-json.php, lines 115 and 238?

- Image by Niklas via Flickr
If you’re wondering why your spanking new WordPress 2.9 upgrade/install brings you the following line everywhere:
Fatal error: Cannot redeclare class services_json in /wp-includes/class-json.php on line 115
…it’s because Alex King’s otherwise sweet plugin Twitter Tools generates it. Deactivate the plugin and you’re OK. It didn’t actually do anything bad for me except mess with my sidebar plus adding the above line in every single page in the admin interface.
I’m sure Monsignieur King will fix this quite soon.
Then, another bit gave me the following error message, popping up to and fro, both in my blog and in the admin interface:
Warning: Cannot modify header information - headers already sent in /wp-includes/class-json.php on line 238
This one was because of the Intense Debate plugin, which I found thanks to vermontjohn and alism in the WordPress forums. I’m using the most current version (2.5) and still the problem pops up. I’ve sent the developers a complete error description and will be awaiting a reply.
update 1, 2009-12-30, 20:47:
I’ve received an e-mail from one of the developers of Intense Debate:
Hi Niklas,
Thanks for getting in contact. We’re taking a look and will have some news shortly.
Thanks,
Michael

December 30th, 2009 at 22:15
[...] See the article here: Niklas' blog » Blog Archive » WordPress 2.9: errors in class-json … [...]
February 8th, 2010 at 03:01
i am having the same intense debate problem
February 8th, 2010 at 05:34
I do believe you can get through this by upgrading WP to 2.9.1. Tried that?
March 3rd, 2010 at 14:00
Same problem using WP 2.9.2
Warning: Cannot modify header information – headers already sent by (output started at /var/www/web4/html/aktuell/wordpress/wp-admin/includes/media.php:301) in /var/www/web4/html/aktuell/wordpress/wp-includes/class-json.php on line 238
Deactivated twitter plugin but this didnt solve the problem