[wp-trac] [WordPress Trac] #35424: comments ans custom db wring stopped working

WordPress Trac noreply at wordpress.org
Tue Jan 12 19:53:07 UTC 2016


#35424: comments ans custom db wring stopped working
--------------------------+-----------------------------
 Reporter:  keiron77      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  4.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Since v4.4 we have found that when submitting comments the visitor is
 presented with "Sorry, comments are closed for this item." also when
 writing to a custom database using the following code we get an unknown
 error:

 {{{#!php
 <?php $wpdb->insert('wp_mytable', array('field_one'=>$_POST['one'],
 'field_two'=>$_POST['two'], 'field_three'=>$_POST['three'],
 'field_four'=>$_POST['four']), array('%s', '%s', '%s', '%s');
 }}}

 We can't even get an error to display using:
 {{{#!php
 <?php $wpdb->print_error();
 }}}


 I have removed all plugins and it made no difference. Version 4.4.1 still
 has the problem but 4.3.2 is ok. It appears to be a database error.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35424>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list