Title: PHP Fatal Error
Last modified: December 20, 2024

---

# PHP Fatal Error

 *  Resolved [thetallone](https://wordpress.org/support/users/thetallone/)
 * (@thetallone)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-453/)
 * Similar to [https://wordpress.org/support/topic/php-fatal-error-wp-activity-log/](https://wordpress.org/support/topic/php-fatal-error-wp-activity-log/)
    - **WP Activity Log**: 5.2.2
    - **WP**: 6.7.1
    - Using [Roots Bedrock](https://roots.io/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:
 *     ```wp-block-code
       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:945Stack 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 945Fatal 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:945Stack 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 945Error: 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)

 *  Thread Starter [thetallone](https://wordpress.org/support/users/thetallone/)
 * (@thetallone)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-453/#post-18209931)
 * Coming back to solve my own post: resetting the plugin settings worked.
 * WP Activity Log > Settings > Advanced Settings > Reset plugin settings to default.
 * For future readers: _all the configured settings will be reset to default and
   all email notifications, scheduled reports, external database / third party services
   connections, archiving and mirroring rule will be deleted. NOTE: the activity
   log data will not be purged._

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [thetallone](https://wordpress.org/support/users/thetallone/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-453/#post-18209931)
 * Status: resolved