[wp-trac] [WordPress Trac] #42362: WordPress database error Unknown column 'wp_mywordpresssite' in 'field list'

WordPress Trac noreply at wordpress.org
Mon Dec 6 10:34:59 UTC 2021


#42362: WordPress database error Unknown column 'wp_mywordpresssite' in 'field
list'
----------------------------------+-----------------------------
 Reporter:  lazam786              |       Owner:  SergeyBiryukov
     Type:  defect (bug)          |      Status:  reviewing
 Priority:  normal                |   Milestone:  6.0
Component:  Database              |     Version:  4.6
 Severity:  normal                |  Resolution:
 Keywords:  has-patch php8 php81  |     Focuses:
----------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch php8 php81
 * milestone:  Future Release => 6.0


Comment:

 Just noting that the error appears to be more prominent with PHP 8.1, as
 reported in #54579:
 > {{{
 > [php:error] [pid 18811] [client 127.0.0.1:36932] PHP Fatal error:
 Uncaught mysqli_sql_exception: > > > Unknown column 'wp_' in 'field list'
 in /var/www/mylocalsite.com/wp-includes/wp-db.php:2056
 > Stack trace:
 > #0 /var/www/mylocalsite.com/wp-includes/wp-db.php(2056): mysqli_query()
 > #1 /var/www/mylocalsite.com/wp-includes/wp-db.php(1945):
 wpdb->_do_query()
 > #2 /var/www/mylocalsite.com/wp-admin/setup-config.php(317):
 wpdb->query()
 > #3 {main}
 >   thrown in /var/www/mylocalsite.com/wp-includes/wp-db.php on line 2056,
 referer: http://mylocalsite.com/wp-admin/setup-config.php?step=1
 > }}}
 >
 > I am running Ubuntu 20.04, PHP 8.1.0, MySQL 8.0.27, Apache 2.4.41

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


More information about the wp-trac mailing list