• Resolved Jean Werk

    (@brightbluegum)


    Hello,

    When I click the Security Ninja icon in my MainWP dashboard, I get a critical error:

    debug.log shows an issue with the freemius class:

    [08-May-2024 05:31:57 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-content/plugins/security-ninja-for-mainwp/security-ninja-mainwp.php on line 1273
    [08-May-2024 05:31:57 UTC] PHP Fatal error:  Uncaught Error: Call to a member function addon_url() on bool in /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-content/plugins/security-ninja-for-mainwp/freemius/includes/class-freemius.php:15032
    Stack trace:
    #0 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-content/plugins/security-ninja-for-mainwp/freemius/includes/class-freemius.php(14955): Freemius->pricing_url()
    #1 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-content/plugins/security-ninja-for-mainwp/class/SecurityNinjaMainWPExtension.class.php(37): Freemius->get_upgrade_url()
    #2 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-content/plugins/security-ninja-for-mainwp/security-ninja-mainwp.php(1348): WPSecurityNinja\Plugin\SecurityNinjaMainWPExtension::render_page()
    #3 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-includes/class-wp-hook.php(324): WPSecurityNinja\Plugin\Security_Ninja_Mainwp::settings()
    #4 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-admin/admin.php(259): do_action()
    #7 {main}
      thrown in /home/353063.cloudwaysapps.com/maetjubrhx/public_html/wp-content/plugins/security-ninja-for-mainwp/freemius/includes/class-freemius.php on line 15032

    I’m using WP Security Ninja (Premium) in case it matters.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lars Koudal

    (@lkoudal)

    Hello

    Thank you for writing to us – That error “Call to a member function addon_url() on bool” indicates you need to install the main Security Ninja plugin (free) on your MainWP dashboard server.

    Also, we have fixed the warning about deprecated code, it will be out in the next release, thank you.

    p.s. I have also just answered your email with more details.

    Thread Starter Jean Werk

    (@brightbluegum)

    Thank you. The error has cleared.

    Plugin Author Lars Koudal

    (@lkoudal)

    Great, thank you for letting us know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical error related to freemius class’ is closed to new replies.