Ticket #4113 (new defect)

Opened 2 years ago

Last modified 1 year ago

Trigger database update error string from XMLRPC/APP

Reported by: redsweater Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: XML-RPC Version: 2.2
Severity: normal Keywords:
Cc: josephscott

Description

When a user updates to a version of WordPress requiring a database update, any attempt to edit the blog through the wp-admin interface triggers a notice that the user needs to update the database.

It would be nice if the same type of error could be detected and conveyed to clients of the XMLRPC and APP interfaces.

I just tested against an updated 2.2 installation, where my attempts to post through the XMLRPC interface failed with a cryptic database error string (it turns out the wp_categories table needed the recently added "type" column).

Going to the admin interface quickly revealed the cause. But it would be nice if the RPC error was, instead of a database access exception, something along the lines of:

"Your WordPress database is out-of-date, and must be upgraded before you can continue. Please visit the administrator's interface of your WordPress installation to perform the upgrade."

Daniel

Change History

04/10/07 00:25:04 changed by rob1n

  • milestone changed from 2.2 to 2.3.

09/05/07 16:57:06 changed by josephscott

  • cc set to josephscott.

Having a more meaningful error would be good.