[wp-trac] [WordPress Trac] #3441: WP ignores MySQL errors rather than displaying them

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 6 11:24:54 GMT 2006


#3441: WP ignores MySQL errors rather than displaying them
---------------------+------------------------------------------------------
 Reporter:  Sewar    |       Owner:  anonymous 
     Type:  defect   |      Status:  new       
 Priority:  normal   |   Milestone:  2.1       
Component:  General  |     Version:  2.1       
 Severity:  normal   |    Keywords:  wpdb error
---------------------+------------------------------------------------------
 How to reproduce:
  1. Activate the attached plugin.
  1. Edit a post and save it, the post will not updated because there are
 error in MySQL query, WP should display the error.
  1. Open file {{{wp-includes/post.php}}} (in trunk) and go to line 604,
 pass it to {{{die}}} function.
  1. Edit a post again and save it, you will see MySQL error.
  1. Deactivate the attached plugin.
  1. Edit a post again and save it, you will see blank page, the post
 updated and no error returned.

 This affects both trunk (2.1) and 2.0.x.

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


More information about the wp-trac mailing list