[wp-trac] [WordPress Trac] #32315: $wpdb->insert fails without error msg
WordPress Trac
noreply at wordpress.org
Wed Aug 14 01:45:40 UTC 2019
#32315: $wpdb->insert fails without error msg
-------------------------------------------------+-------------------------
Reporter: dlt101 | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting
| Review
Component: Database | Version: 4.2.1
Severity: normal | Resolution:
Keywords: dev-feedback has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by FPCSJames):
@pento Please, PLEASE consider merging the first patch here. It's
absolutely bonkers that invalid data should cause a query to just fail
silently - it makes tracking down the source of an issue virtually
impossible when good code suddenly stops working due to a change somewhere
in the hosting environment. I spent hours tracking down why Gravity Forms
inserts were failing silently today - the answer is that they were storing
the IP address of the submitter in a varchar(39) column, and something in
the hosting environment was inserting [] around IPv6 addresses. Without
the solution in the patch, which I used, I would have had no leads for far
longer.
Silent death is madness. Fix this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32315#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list