• Resolved qwik3r

    (@qwik3r)


    Hello. I’m trying to install your plugin to use in conjunction with WP Active Monitor. Upon activating it however i received the following fatal error:

    Fatal error: Uncaught Error: Call to undefined method WpSecurityAuditLog::GetGlobalSetting() in /home/public_html/wp-content/plugins/website-file-changes-monitor/includes/wfcm-functions.php:386 Stack trace: #0 /home/public_html/wp-includes/class-wp-hook.php(307): wfcm_install() #1 /home/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #2 /home/public_html/wp-includes/plugin.php(474): WP_Hook->do_action() #3 /home/public_html/wp-admin/plugins.php(194): do_action() #4 {main} thrown in?/home/public_html/wp-content/plugins/website-file-changes-monitor/includes/wfcm-functions.php?on line?386

    Can you please advise?

    Thanks.

    • This topic was modified 2 years, 7 months ago by qwik3r.
    • This topic was modified 2 years, 7 months ago by qwik3r.
Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m seeing the same error when activating the plugin on a new install. It looks like WFCM is trying to call WpSecurityAuditLog::GetGlobalSetting(), when it should be calling WpSecurityAuditLog::get_global_setting().

    If you absolutely must get it working now, edit the plugin file at wp-content/plugins/website-file-changes-monitor/includes/wfcm-functions.php, and change line 386 to the following:

    $excluded_cpts = $wsal->get_global_setting( 'custom-post-types', '' );

    This change will be lost the next time this plugin updates, but that would only be a problem if 1) the error isn’t fixed, 2) you’ve deactivated WFCM for some reason, and 3) you’ve removed all the WFCM entries from the wp_options table.

    Thread Starter qwik3r

    (@qwik3r)

    Thanks. I’d rather wait until a proper fix is in place, but at least someone else is experiencing it too.

    Plugin Author robertabela

    (@robert681)

    Hello,

    Thank you very much for using our plugin.

    Just to confirm, you are experiencing this error because you are running this plugin alongside WP Activity Log, and in the most recent version of that plugin we’ve changed some things.

    @qwik3r for now it is safe to patch it as @andronocean so at least you can run the plugin until we issue a fix. In the next update we will include the fix as well.

    Thank you very much for trying our plugin.

    Plugin Author robertabela

    (@robert681)

    Hello,

    Sorry it took us some time, but once we were working on an update we wanted to also fit in a few more improvements and bug fixes.

    Today we released update 1.8.2. Please install this version of the plugin to address your problem.

    Should you have any other questions or require help, please do not hesitate to ask.

    Have a great day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error’ is closed to new replies.