[wp-trac] [WordPress Trac] #15827: AJAX paging breaks badly when json_encode can't encode

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 15 14:27:33 UTC 2010


#15827: AJAX paging breaks badly when json_encode can't encode
----------------------------+--------------------
 Reporter:  westi           |      Owner:  scribu
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  3.1
Component:  Administration  |    Version:  3.1
 Severity:  normal          |   Keywords:
----------------------------+--------------------
 If json_encode can't encode a response for some reason you get no feedback
 at all except for a blank list.

 This seems most likely to trigger with invalid UTF8 sequences in spam
 comments.

 With non-ajax paging you at least get all the comments displayed even if
 you do get a lot of ??? for the bad chars

 Example Error seen:

 {{{
 [15-Dec-2010 14:18:38] Warning: json_encode() [<a href='function.json-
 encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument in
 /home/wpdev/public_html/wp-admin/includes/class-wp-list-table.php on line
 839 [
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15827>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list