[wp-trac] [WordPress Trac] #32315: $wpdb->insert fails without error msg

WordPress Trac noreply at wordpress.org
Tue Nov 16 03:15:05 UTC 2021


#32315: $wpdb->insert fails without error msg
---------------------------------------------+-----------------------------
 Reporter:  dlt101                           |       Owner:  hellofromTonya
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  5.9
Component:  Database                         |     Version:  4.2.1
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Thanks for the commit!

 Re-reading the message for multiple fields now:
 > `WordPress database error: Processing the value for the following fields
 failed: %s. The supplied value may be too long or contains invalid data.`

 Should "values" be plural here too? I think I'd expect something like
 this:
 > `WordPress database error: Processing the values for the following
 fields failed: %s. The supplied values may be too long or contain invalid
 data.`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/32315#comment:83>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list