• I had Windows 10 on computer. I used XAMPP and WordPress. All worked good. Some days ago I update Windows to Windows 11. I installed XAMPP and try to install WordPress(I download WP from www.ads-software.com; unzip it and put it in folder C:\xampp\htdocs\www and I made db for my site). Then I try to install WP I get error:
    Fatal error: Uncaught mysqli_sql_exception: Table 'trywp.wp_options' doesn't exist in C:\xampp\htdocs\www\trywp\wp-includes\wp-db.php:2056 Stack trace: #0 C:\xampp\htdocs\www\trywp\wp-includes\wp-db.php(2056): mysqli_query(Object(mysqli), 'SELECT option_n...') #1 C:\xampp\htdocs\www\trywp\wp-includes\wp-db.php(1945): wpdb->_do_query('SELECT option_n...') #2 C:\xampp\htdocs\www\trywp\wp-includes\wp-db.php(2695): wpdb->query('SELECT option_n...') #3 C:\xampp\htdocs\www\trywp\wp-includes\option.php(284): wpdb->get_results('SELECT option_n...') #4 C:\xampp\htdocs\www\trywp\wp-includes\functions.php(1730): wp_load_alloptions() #5 C:\xampp\htdocs\www\trywp\wp-includes\load.php(752): is_blog_installed() #6 C:\xampp\htdocs\www\trywp\wp-settings.php(159): wp_not_installed() #7 C:\xampp\htdocs\www\trywp\wp-config.php(96): require_once('C:\\xampp\\htdocs...') #8 C:\xampp\htdocs\www\trywp\wp-load.php(50): require_once('C:\\xampp\\htdocs...') #9 C:\xampp\htdocs\www\trywp\wp-blog-header.php(13): require_once('C:\\xampp\\htdocs...') #10 C:\xampp\htdocs\www\trywp\index.php(17): require('C:\\xampp\\htdocs...') #11 {main} thrown in C:\xampp\htdocs\www\trywp\wp-includes\wp-db.php on line 2056
    Why it happend?

    • This topic was modified 2 years, 11 months ago by Jan Dembowski.
Viewing 9 replies - 16 through 24 (of 24 total)
  • Slider Revolution and FileBird are amongst the plugins throwing the error.

    Thread Starter vrpr

    (@vrpr)

    You have a theme on your site and it works and it has tables, and an error appears when installing plugins?
    Unfortunately, I have no ideas other than how to contact the developers of these plugins.

    Using Windows 10 and the newest XAMPP version with PHP 8.1.1 and seeing this exact php error when trying to install a new WordPress site. Still looking into the cause of the problem. Instead of seeing the usual WP installer page I’m seeing the php error. What is unusual about the php error is this > It’s looking for the wp_options DB table before it has even been created in the DB. Will post back here when I figure this out.

    • This reply was modified 2 years, 10 months ago by AITpro.

    Downloaded WP 5.9 Beta4 and it installed fine and works fine. So yeah WP 5.8.2 has issues on PHP 8.1.1.

    I have exactly the same problem, I encounter this error when installing WordPress, please help. I also changed Windows to 11

    Fatal error: Uncaught mysqli_sql_exception: Table 'wp_plugin.wp_options' doesn't exist in D:\xampp\htdocs\wp-plugin\wp-includes\wp-db.php:2056 Stack trace: #0 D:\xampp\htdocs\wp-plugin\wp-includes\wp-db.php(2056): mysqli_query(Object(mysqli), 'SELECT option_n...') #1 D:\xampp\htdocs\wp-plugin\wp-includes\wp-db.php(1945): wpdb->_do_query('SELECT option_n...') #2 D:\xampp\htdocs\wp-plugin\wp-includes\wp-db.php(2695): wpdb->query('SELECT option_n...') #3 D:\xampp\htdocs\wp-plugin\wp-includes\option.php(284): wpdb->get_results('SELECT option_n...') #4 D:\xampp\htdocs\wp-plugin\wp-includes\functions.php(1730): wp_load_alloptions() #5 D:\xampp\htdocs\wp-plugin\wp-includes\load.php(752): is_blog_installed() #6 D:\xampp\htdocs\wp-plugin\wp-settings.php(159): wp_not_installed() #7 D:\xampp\htdocs\wp-plugin\wp-config.php(96): require_once('D:\\xampp\\htdocs...') #8 D:\xampp\htdocs\wp-plugin\wp-load.php(50): require_once('D:\\xampp\\htdocs...') #9 D:\xampp\htdocs\wp-plugin\wp-blog-header.php(13): require_once('D:\\xampp\\htdocs...') #10 D:\xampp\htdocs\wp-plugin\index.php(17): require('D:\\xampp\\htdocs...') #11 {main} thrown in D:\xampp\htdocs\wp-plugin\wp-includes\wp-db.php on line 2056

    Thread Starter vrpr

    (@vrpr)

    Hello @hamid256br
    Above @aitpro told how he solved the problem. And I installed the old XAMPP 7.3.2 and it working good.

    Thread Starter vrpr

    (@vrpr)

    Hello @aitpro. It’s just that I have reinstalled XAMPP several times so I’m tired of it. I will use the old XAMPP for now and somehow later I will go your way. Maybe I’ll wait for the next version of wordpress.

    AITPro thanks for the heads up

    I can confirm through replication that on Windows 10

    using the latest version of XAMPP for Windows 8.1.1
    Running Apache 2.4.52, MariaDB 10.4.22, PHP 8.1.1

    There are a series of Critical Failures when trying to install
    WordPress version 5.8.3
    such as

    Deprecated: Return type of WP_Hook::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute s

    there is success when trying to install

    wordpress-5.9-RC1

    XAMPP for Windows Current Release allows you to choose your Package based on the version of PHP Versions available are 7.4.27, 8.0.14 & 8.1.1

    I did not test with 7.4.27 yet

    The problem seems to be that WP 5.8.3 has deprecated PHP code

    This is an important consideration when you are developing local and uploading to your hosting service. You must make sure that the correct PHP Versions are available or you will need to adjust your install of wordpress to match your hosting service.

    I JUST CHECKED MY HOSTING COMPANY PHP VERSION HIGHEST LEVEL AND IT IS PHP 7.4

    This is an important consideration if wp5.9 requires PHP 8x and can not fall back to 7.4 gracefully then users should not upgrade to wp5.9 or they will have problems with their website.

    I am in the process of taking control of and upgrading some much older WP installs and this is good information to have.

    I think I am going to have to do partial upgrades to remain compatible with the PHP on the Hosting Site for now and then for safety sake turn off auto updates.

    I will also have to install the 7.4 version of XAMPP to be compatible with their hosting company. Then I can see how far I can get with WP and the current Plugin List for their sites.

    Thank you again AITPro

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Table ‘…’ doesn’t exist’ is closed to new replies.