Support » Plugins and Hacks » [Resolved] Uncaught exception

[Resolved] Uncaught exception

  • Hello.
    I’ve activated one of the plugin options on the multisite backoffice, and now it gives me a fatal error:

    PHP Fatal error:  Uncaught exception 'Exception' with message 'Alert with code "5001" has not be registered.' in /wp-content/plugins/wp-security-audit-log/classes/AlertManager.php:86, referer: http://mysite.com/wp-admin/network/plugins.php
    Stack trace:, referer: http://mysite.com/wp-admin/network/plugins.php
    #0 /wp-content/plugins/wp-security-audit-log/classes/AlertManager.php(55): WSAL_AlertManager->_CommitItem(5001, Array, NULL), referer: http://mysite.com/wp-admin/network/plugins.php
    #1 /wp-content/plugins/wp-security-audit-log/classes/Sensors/PluginsThemes.php(69): WSAL_AlertManager->Trigger(5001, Array), referer: http://mysite.com/wp-admin/network/plugins.php
    #2 [internal function]: WSAL_Sensors_PluginsThemes->EventAdminShutdown(''), referer: http://mysite.com/wp-admin/network/plugins.php
    #3 /wp-includes/plugin.php(429): call_user_func_array(Array, Array), referer: http://mysite.com/wp-admin/network/plugins.php
    #4 /wp-includes/load.php(580): do_action('shutdown'), referer: http://mysite.com/wp-admin/network/plugins.php
    #5 [internal function]: shutdown_action_hook(), referer: http://mysite.com/wp-admin/network/plugins.php
    #6 {main}, referer: http://mysite.com/wp-admin/network/plugins.php
    thrown in /wp-content/plugins/wp-security-audit-log/classes/AlertManager.php on line 86, referer: http://mysite.com/wp-admin/network/plugins.php

    I’ve already deleted the options prefixed with WPPH_ and dropped the table wp_wordpress_auditlog_events and I still get that fatal on activation.

    Any help?


Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author WPWhiteSecurity


    HI Henrique,

    Sorry to hear you’ve encountered problems. Some questions:

    1. Which option are we talking about here?
    2. Which version of the plugin are you using?

    The tables you mentioned are from an older version of the plugin. If you’ve done an upgrade you can delete them.

    Looking forward to hearing from you.

    I’ve activated the 4 options as seen on https://ps.w.org/wp-security-audit-log/assets/screenshot-2.png?rev=918020 (Developer Options).

    It is the latest version.

    Thanks for your help.

    Plugin Author WPWhiteSecurity


    Hi Henrique,

    Sorry for the delay in replying. We identified the issue and have a fix. You can download the fix / latest non public version of the plugin from the following link.

    P.S. sometimes the link from here does not work. If that is the case right click the link, copy the link and paste it in a new browser window.

    Even though it is not available to the public, this version is tested. To update your plugin, please follow the below procedure:

    1. Disable the plugin from WordPress

    2. Using FTP delete the plugin directory (/website/wp-content/plugins/wp-security-audit-log/)

    3. Extract the zip file you’ve just downloaded

    4. Upload the new update of the plugin

    5. Activate the plugin

    Can you please advise us if the fix works or not? It should work though would be great if you can confirm to us.

    Thank you for reporting the issue and looking forward to hearing from you.

    It didn’t work, it now activated, but I got another fatal error:

    PHP Fatal error: Call to undefined function is_user_logged_in() in /wp-content/plugins/wp-security-audit-log/classes/AlertManager.php on line 189, referer: http://mysite.com/wp-admin/network/plugins.php

    Thanks for your help!

    Plugin Author WPWhiteSecurity


    Hi Henrique,

    That was another issue from our end, sorry for that. Can you please download the latest fix from this link and let us know if it works out for you?

    thanks a lot for reporting these issues and looking forward to hearing from you.

    Hi, we are having the same issue here. Tried clicking the link to download fix, but doesnt work. Can you please reupload?

    Fatal error: Uncaught exception 'Exception' with message 'Alert with code "5001" has not be registered.' in C:\Wordpress\wordpress\wp-content\plugins\wp-security-audit-log\classes\AlertManager.php:107 Stack trace: #0 C:\Wordpress\wordpress\wp-content\plugins\wp-security-audit-log\classes\AlertManager.php(77): WSAL_AlertManager->_CommitItem(5001, Array, NULL) #1 C:\Wordpress\wordpress\wp-content\plugins\wp-security-audit-log\classes\Sensors\PluginsThemes.php(69): WSAL_AlertManager->Trigger(5001, Array) #2 [internal function]: WSAL_Sensors_PluginsThemes->EventAdminShutdown('') #3 C:\Wordpress\wordpress\wp-includes\plugin.php(470): call_user_func_array(Array, Array) #4 C:\Wordpress\wordpress\wp-includes\load.php(573): do_action('shutdown') #5 [internal function]: shutdown_action_hook() #6 {main} thrown in C:\Wordpress\wordpress\wp-content\plugins\wp-security-audit-log\classes\AlertManager.php on line 107

    New install, so on latest version of plugin

    Plugin Author WPWhiteSecurity


    Hi Atpoole,

    We just issued a fixed in version 1.2.6 of the plugin today. Please download the latest version and advise.

    Thanks a lot for using our plugin and have a great day.

    Unfortunately the exact error still appears. I tried doing a fresh install (removing wsal tables and reinstalling plugin) and error still appears when you activate and delete plugin. Error does not appear when you deactivate.

    Plugin Contributor robert681


    Hi Atpoole,

    We are looking into it today. Will keep you posted of the progress and will let you know should we need any further information.

    Stay tuned.

    Plugin Author WPWhiteSecurity


    HI Atpoole,

    Trust this message finds you well.

    We just issued a fix for your problem. Can you please update to version 1.2.7 and confirm if the issue is solved?

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] Uncaught exception’ is closed to new replies.