Database error when upgrading
-
After updating to the latest version from 4.3.2, my error log is full of these errors and the plugin no longer records new data or correctly displays old data in the log viewer:
"PHP message: WordPress database error Unknown column 'client_ip' in 'field list' for query SELECT DISTINCT client_ip FROM wp_wsal_occurrences LIMIT 100 made by do_action('wp-activity-log_page_wsal-rep-views-main'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL_ViewManager->render_view_body, WSAL_AbstractView->render_content, WSAL_Rep_Views_Main->render, include('/plugins/wp-security-audit-log-premium/extensions/reports/inc/wsal-reporting-view.inc.php'), WSAL_Rep_Common::get_ip_addresses, WSAL\Adapter\WSAL_Adapters_MySQL_Occurrence->get_matching_ips" while reading upstream, request: "GET /wp-admin/admin.php?page=wsal-rep-views-main HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", referrer: "localhost/wp-admin/admin.php?page=wsal-ext-settings&tab=mirroring"
2023/03/10 09:55:45 [error] 29595#29595: *1311873 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "client_ip" in /var/www/site/wp-content/plugins/wp-security-audit-log-premium/classes/ViewManager.Any help would be appreciated. It seems like the plugin is not updating or recognizing the database correctly.
- The topic ‘Database error when upgrading’ is closed to new replies.