[wp-trac] [WordPress Trac] #54883: "Table 'wp_options' doesn't exist" error thrown when installing WordPress on PHP 8.1.
WordPress Trac
noreply at wordpress.org
Sun Jan 23 08:10:42 UTC 2022
#54883: "Table 'wp_options' doesn't exist" error thrown when installing WordPress
on PHP 8.1.
-----------------------------+-----------------------------
Reporter: maythamalsudany | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 5.8.3
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
When using PHP 8.1, the following error is thrown after configuring the
database credentials (editing wp-config.php, or using the installer):
{{{
PHP Fatal error: Uncaught mysqli_sql_exception: Table 'mysite.wp_options'
doesn't exist in .../wp-includes/wp-db.php:2056
Stack trace:
#0 .../wp-includes/wp-db.php(2056): mysqli_query(Object(mysqli), 'SELECT
option_n...')
#1 .../wp-includes/wp-db.php(1945): wpdb->_do_query('SELECT option_n...')
#2 .../wp-includes/wp-db.php(2695): wpdb->query('SELECT option_n...')
#3 .../wp-includes/option.php(284): wpdb->get_results('SELECT
option_n...')
#4 .../wp-includes/functions.php(1730): wp_load_alloptions()
#5 .../wp-includes/load.php(752): is_blog_installed()
#6 .../wp-settings.php(159): wp_not_installed()
#7 .../wp-config.php(78): require_once('/Users/maythama...')
#8 .../wp-load.php(50): require_once('/Users/maythama...')
#9 .../wp-blog-header.php(13): require_once('/Users/maythama...')
#10 .../index.php(17): require('/Users/maythama...')
#11 {main}
thrown in .../wp-includes/wp-db.php on line 2056
}}}
Reverting to PHP 8.0 fixes the problem though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54883>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list