[wp-trac] [WordPress Trac] #11537: Warning: Cannot modify header information… in class-json.php
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 20 22:09:43 UTC 2009
#11537: Warning: Cannot modify header information… in class-json.php
------------------------------+---------------------------------------------
Reporter: zigazou | Owner: westi
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9.1
Component: Warnings/Notices | Version: 2.9
Severity: normal | Keywords:
------------------------------+---------------------------------------------
I installed the Mappress plugin and Wordpress 2.9 started showing these
messages :
When displaying a page/article :
Warning: Cannot modify header information - headers already sent by
(output started at /home/expote/public_html/wp-
content/themes/atahualpa/header.php:2) in /home/expote/public_html/wp-
includes/class-json.php on line 238
When editing a page/article :
Warning: Cannot modify header information - headers already sent by
(output started at /home/expote/public_html/wp-admin/admin-header.php:18)
in /home/expote/public_html/wp-includes/class-json.php on line 238
This bug occurs when :
- the PHP version does not have the json_encode function (I've got a PHP
4.4.9 version)
- a plugin tries to use the json_encode function
After looking at class-json.php, it seems odd to me that the encode method
of the Services_JSON class outputs HTTP headers since it is used to
emulate the json_encode of PHP 5 which does not send headers.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11537>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list