Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3441 closed defect (bug) (invalid)

WP ignores MySQL errors rather than displaying them

Reported by: sewar's profile Sewar Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: General Keywords: wpdb error
Focuses: Cc:

Description

How to reproduce:

  1. Activate the attached plugin.
  2. Edit a post and save it, the post will not updated because there are error in MySQL query, WP should display the error.
  3. Open file wp-includes/post.php (in trunk) and go to line 604, pass it to die function.
  4. Edit a post again and save it, you will see MySQL error.
  5. Deactivate the attached plugin.
  6. 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.

Attachments (1)

breaking_mysql_query.php (244 bytes) - added by Sewar 18 years ago.
Breaking MySQL Query Plugin: for debug MySQL query errors

Download all attachments as: .zip

Change History (4)

@Sewar
18 years ago

Breaking MySQL Query Plugin: for debug MySQL query errors

#1 @ryan
18 years ago

  • Milestone changed from 2.1 to 2.2

#2 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.3

#3 @rob1n
18 years ago

  • Milestone 2.3 (trunk) deleted
  • Resolution set to invalid
  • Status changed from new to closed

I just went through all these steps to reaffirm what I already thought — the DB error is shown.

Note: See TracTickets for help on using tickets.