PHP Fatal Error
-
Similar to https://ww.wp.xz.cn/support/topic/php-fatal-error-wp-activity-log/
- WP Activity Log: 5.2.2
- WP: 6.7.1
- Using Roots Bedrock, so installing plugin via composer.
- PHP 8.2
- Deploying to Kinsta
I can’t run any WP CLI commands (e.g.
wp plugin list) without hitting the following error:PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /public/www/app/plugins/wp-security-audit-log/classes/Helpers/class-settings-helper.php:945
Stack trace:
#0 /public/www/app/plugins/wp-security-audit-log/classes/Helpers/class-settings-helper.php(945): explode()
#1 /public/www/app/plugins/wp-security-audit-log/classes/WPSensors/class-wp-database-sensor.php(99): WSAL\Helpers\Settings_Helper::get_disabled_alerts()
#2 /public/www/app/plugins/wp-security-audit-log/classes/WPSensors/class-wp-database-sensor.php(83): WSAL\WP_Sensors\WP_Database_Sensor::is_sensor_enabled()
#3 [internal function]: WSAL\WP_Sensors\WP_Database_Sensor::init()
#4 /public/www/app/plugins/wp-security-audit-log/classes/Controllers/class-sensors-load-manager.php(187): call_user_func_array()
#5 /public/www/app/plugins/wp-security-audit-log/classes/class-wp-security-audit-log.php(156): WSAL\Controllers\Sensors_Load_Manager::load_sensors()
#6 /public/www/wp/wp-includes/class-wp-hook.php(324): WpSecurityAuditLog->{closure}()
#7 /public/www/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 /public/www/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /public/www/wp/wp-settings.php(700): do_action()
#10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1375): require('...')
#11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1294): WP_CLI\Runner->load_wordpress()
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#15 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('...')
#16 /usr/local/bin/wp(4): include('...')
#17 {main}
thrown in /public/www/app/plugins/wp-security-audit-log/classes/Helpers/class-settings-helper.php on line 945
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /public/www/app/plugins/wp-security-audit-log/classes/Helpers/class-settings-helper.php:945
Stack trace:
#0 /public/www/app/plugins/wp-security-audit-log/classes/Helpers/class-settings-helper.php(945): explode()
#1 /public/www/app/plugins/wp-security-audit-log/classes/WPSensors/class-wp-database-sensor.php(99): WSAL\Helpers\Settings_Helper::get_disabled_alerts()
#2 /public/www/app/plugins/wp-security-audit-log/classes/WPSensors/class-wp-database-sensor.php(83): WSAL\WP_Sensors\WP_Database_Sensor::is_sensor_enabled()
#3 [internal function]: WSAL\WP_Sensors\WP_Database_Sensor::init()
#4 /public/www/app/plugins/wp-security-audit-log/classes/Controllers/class-sensors-load-manager.php(187): call_user_func_array()
#5 /public/www/app/plugins/wp-security-audit-log/classes/class-wp-security-audit-log.php(156): WSAL\Controllers\Sensors_Load_Manager::load_sensors()
#6 /public/www/wp/wp-includes/class-wp-hook.php(324): WpSecurityAuditLog->{closure}()
#7 /public/www/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 /public/www/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /public/www/wp/wp-settings.php(700): do_action()
#10 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1375): require('...')
#11 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1294): WP_CLI\Runner->load_wordpress()
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#13 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#15 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('...')
#16 /usr/local/bin/wp(4): include('...')
#17 {main}
thrown in /public/www/app/plugins/wp-security-audit-log/classes/Helpers/class-settings-helper.php on line 945
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.I have tried
- reinstalling the plugin
- reinstalling WP
- using WP 6.6.2
- deactivating/reactivating the plugin
- clearing caches
The line number seems to be wrong as there is no
explode()on line 945 (same as noticed in the earlier support topic linked above). It seems to be referring to line 952 instead.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Fatal Error’ is closed to new replies.