Change WordPress user roles and capabilities Forums Bug Reports Fatal Error w/ SG Security

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7823
    dt10111
    Participant

    Just bought this plugin, installed it and immediately got a fatal error.

    Any insight would be appreciated ?

    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /wp-content/plugins/sg-security/core/Activity_Log/Activity_Log_Helper.php:20 Stack trace:
    #0 /wp-content/plugins/sg-security/core/Activity_Log/Activity_Log_Plugins.php(41): SG_Security\Activity_Log\Activity_Log_Helper->log_event(Array)
    #1 /wp-includes/class-wp-hook.php(309): SG_Security\Activity_Log\Activity_Log_Plugins->log_plugin_deactivate(‘user-role-edito…’)
    #2 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #3 /wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #4 /wp-admin/includes/plugin.php(826): do_action(‘deactivated_plu…’, ‘user-role-edito…’, false)
    #5 /wp-content/plugins/user-role-editor/user-r in /wp-content/plugins/sg-security/core/Activity_Log/Activity_Log_Helper.php on line 20

    #7825
    Vladimir
    Keymaster

    I installed and activated SG Security plugin. Then I activated/deactivated/reinstalled few times URE Pro without any trouble and fatal error generated by SGC plugin.

    The only way when I got a similar issue, when I tried to activate URE Pro having active free version of URE at the same time. Deactivate free version of URE before install/activate URE Pro. Read this article for more information.

    Conclusion, URE Pro can work with SGC plugin together without trouble. In the case described above URE shows admin notice via ‘admin_notices’ WP built-in action. But active SGC generates fatal error. The reason is a questions to SGC developers.

    Workaround – deactivate all URE versions (via WordPress or temporally rename URE plugin folder and open “Plugins” page), then activate URE Pro.

    #7826
    dt10111
    Participant

    Thanks! I’m in contact with the SG people as well. I’ll make sure the free version is completely uninstalled as well.

    #7833
    colli239
    Participant

    I upgraded to the the most recent version of the URE plugin today and am now getting a fatal error when I try to access uncanny plugin pages.

    #7834
    Vladimir
    Keymaster

    To @colli239,

    Show the error message. You can switch WordPress to debug mode to write it into the debug.log file: https://wordpress.org/support/article/debugging-in-wordpress/

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.