• Resolved vdseric

    (@vdseric)


    When trying to activate the plugin I receive a Fatal Error message and have to deactivate it. I deactivated all of the plugins and changed themes and still got the fatal error when trying to activate the plugin. Any Help in resolving this would be much appreciated. Thanks

    The Error:

    [12-Mar-2025 21:11:19 UTC] PHP Fatal error: Uncaught TypeError: base64_decode(): Argument #1 ($string) must be of type string, bool given in /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-connection.php:198 Stack trace: #0 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-connection.php(198): base64_decode(false) #1 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-connection.php(445): WSAL\Controllers\Connection::decrypt_string(false) #2 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-connection.php(416): WSAL\Controllers\Connection::build_connection(Array) #3 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-connection.php(150): WSAL\Controllers\Connection::create_connection(NULL) #4 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Loggers/class-database-logger.php(57): WSAL\Controllers\Connection::get_connection() #5 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-alert-manager.php(928): WSAL\Loggers\Database_Logger::log(6067, Array) #6 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-alert-manager.php(644): WSAL\Controllers\Alert_Manager::log(6067, Array) #7 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-alert-manager.php(273): WSAL\Controllers\Alert_Manager::commit_item(6067, Array, NULL) #8 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-system-sensor.php(349): WSAL\Controllers\Alert_Manager::trigger_event(6067, Array) #9 /home/beaujo01/public_html/wp-includes/class-wp-hook.php(324): WSAL\WP_Sensors\WP_System_Sensor::created_cron_job(Object(stdClass)) #10 /home/beaujo01/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array) #11 /home/beaujo01/public_html/wp-includes/cron.php(287): apply_filters(‘schedule_event’, Object(stdClass)) #12 /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-cron-jobs.php(483): wp_schedule_event(1741813879, ‘hourly’, ‘wsal_cleanup_ho…’) #13 /home/beaujo01/public_html/wp-includes/class-wp-hook.php(324): WSAL\Controllers\Cron_Jobs::initialize_hooks(”) #14 /home/beaujo01/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #15 /home/beaujo01/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /home/beaujo01/public_html/wp-settings.php(682): do_action(‘after_setup_the…’) #17 /home/beaujo01/public_html/wp-config.php(105): require_once(‘/home/beaujo01/…’) #18 /home/beaujo01/public_html/wp-load.php(50): require_once(‘/home/beaujo01/…’) #19 /home/beaujo01/public_html/wp-blog-header.php(13): require_once(‘/home/beaujo01/…’) #20 /home/beaujo01/public_html/index.php(17): require(‘/home/beaujo01/…’) #21 {main} thrown in /home/beaujo01/public_html/wp-content/plugins/wp-security-audit-log/classes/Controllers/class-connection.php on line 198

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support robertabela

    (@robert681)

    I am sorry to read about your issue @vdseric

    Can you please let us know what version of WordPress and PHP are you running? Also, I am presuming you are trying the latest version of WP Activity Log, is that right?

    Looking forward to hearing from you.

    Thread Starter vdseric

    (@vdseric)

    The WordPress Version is 6.7.2 and Yes it is the newest version of the plugin 5.3.3

    • This reply was modified 1 year, 3 months ago by vdseric.
    Plugin Support robertabela

    (@robert681)

    And what version of PHP are you running please?

    Thread Starter vdseric

    (@vdseric)

    The php version is 8.1

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Hello @vdseric!

    Thank you for sharing the error details.

    Based on the error message, it seems that the issue is happening because the base64_decode() function is receiving a false value, indicating that the encrypted data it’s trying to decode might be empty, corrupted, or missing; that might indicate a possible corrupted installation so, to address this, I recommend performing a fresh reinstall of the plugin.

    Here’s how to do it safely without losing any logs:

    1. Clear out plugin settings
      Access your website’s database and remove all entries prefixed as WSAL_ in the wp_options table. This will clear any previous plugin configuration data that could be corrupted. Your stored logs will remain intact.
    2. Remove the Plugin
      Uninstall the plugin from your WordPress site.
    3. Reinstall the Plugin
      Go to the WordPress plugin repository, reinstall WP Security Audit Log (WSAL), and configure it from scratch.

    By doing this, we can ensure that any corrupted settings are completely removed and the plugin starts fresh, which should solve the issue.

    Please try this and let me know if it helps! If the problem persists, we can explore further options.

    Thread Starter vdseric

    (@vdseric)

    Lucian, Thank you! Your solution worked and the plugin can now be activated without causing a fatal error.

    Plugin Support Lucian Padureanu

    (@lucianwpwhite)

    Thank you for confirming and for the great news, @vdseric

    Should you have any other questions, please do not hesitate to ask. May I ask you for a small favour? Can you please spare a minute to rate our plugin and service? These ratings are really helpful!

    Thank you in advance for your time.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal Error When Trying to Activate the Plugin’ is closed to new replies.