Fatal php error trying to install latest version
-
Hi,
I’m encounrtering an error when trying to install the latest version – seems it’s not running the CREATE TABLE logic for the necessary tables for the plugin before trying to run the update script.
Fatal error stacktrace:
PHP Fatal error: Uncaught mysqli_sql_exception: Table 'wp_mysitelocal.wp_betterdocs_search_keyword' doesn't exist in D:\Work\Server\mywebsite.com.au\wp-includes\class-wpdb.php:2349\nStack trace:\n#0 D:\Work\Server\mywebsite.com.au\wp-includes\class-wpdb.php(2349): mysqli_query(Object(mysqli), 'DESCRIBE wp_bet…')\n#1 D:\Work\Server\mywebsite.com.au\wp-includes\class-wpdb.php(2263): wpdb->_do_query('DESCRIBE wp_bet…')\n#2 D:\Work\Server\mywebsite.com.au\wp-includes\class-wpdb.php(3146): wpdb->query('DESCRIBE wp_bet…')\n#3 D:\Work\Server\mywebsite.com.au\wp-admin\includes\upgrade.php(2864): wpdb->get_results('DESCRIBE wp_bet…')\n#4 D:\Work\Server\mywebsite.com.au\wp-content\plugins\betterdocs\includes\Core\Install.php(185): dbDelta(Array)\n#5 D:\Work\Server\mywebsite.com.au\wp-content\plugins\betterdocs\includes\Core\Install.php(100): WPDeveloper\BetterDocs\Core\Install->check_db_updates()\n#6 D:\Work\Server\mywebsite.com.au\wp-includes\class-wp-hook.php(324): WPDeveloper\BetterDocs\Core\Install->activate(false)\n#7 D:\Work\Server\mywebsite.com.au\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters('', Array)\n#8 D:\Work\Server\mywebsite.com.au\wp-includes\plugin.php(517): WP_Hook->do_action(Array)\n#9 D:\Work\Server\mywebsite.com.au\wp-admin\includes\plugin.php(693): do_action('activate_better…', false)\n#10 D:\Work\Server\mywebsite.com.au\wp-admin\plugins.php(58): activate_plugin('betterdocs/bett…', 'http://local.my…', false)\n#11 {main}\n thrown in D:\Work\Server\mywebsite.com.au\wp-includes\class-wpdb.php on line 2349, referer: http://local.mywebsite.com.au/wp-admin/plugins.phpTried it on my local dev and on a hosted staging site with the same results.
PHP: 8.2
WordPress: 6.4.3
MySQL: 8
The topic ‘Fatal php error trying to install latest version’ is closed to new replies.