[wp-trac] [WordPress Trac] #4113: Trigger database update error string from XMLRPC/APP

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 8 17:31:54 GMT 2007


#4113: Trigger database update error string from XMLRPC/APP
------------------------+---------------------------------------------------
 Reporter:  redsweater  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  2.2      
Component:  XML-RPC     |     Version:  2.2      
 Severity:  normal      |    Keywords:           
------------------------+---------------------------------------------------
 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

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


More information about the wp-trac mailing list