Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Pawel – WPMU DEV Support

    (@wpmudev-support9)

    Hello @awijasa

    Hope you are doing well!

    Looks like a file went missing during installation or an update. Please remove the plugin and re-install it again. You can upload the plugin directly via FTP to /wp-content/plugins/ folder.

    Hope this helps!

    Cheers,
    nastia

    Thread Starter awijasa

    (@awijasa)

    Hi @wpmudev-support9,

    Initially, I thought the problem was caused by the missing script.js. That’s not the case.

    After updating Defender to 2.1.1.1, Defender Dashboard has stopped rendering properly as you can see on the screenshot below:

    https://1drv.ms/u/s!AkPadOmCX3cyuHcVKdnUBmgB3pi8

    Some WordPress websites will be able to render the Defender Dashboard just fine, some don’t. Maybe it was caused by a conflict with a different plugin or theme, I can’t pinpoint the exact issue for sure.

    However, one simple fix took care of this problem for me:

    1. Edit defender-security/wp-defender.php
    2. Replace add_filter( 'admin_body_class', array( &$this, 'adminBodyClasses' ) ); with add_filter( 'admin_body_class', array( &$this, 'adminBodyClasses' ), 11, 1 );

    Please let me know if this change above can be integrated into Defender’s code base. This simple fix may improve its compatibility with other plugins and themes.

    Thanks,

    @awijasa

    • This reply was modified 5 years, 1 month ago by awijasa.
    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @awijasa,

    hope you’re doing well and appreciate the report on this.

    Are you maybe using the https://wordpress.org/plugins/wp-seopress/ plugin? Cause we had a recent conflict report about broken Defender settings page.

    If not, I’m afraid that only a full conflict test will reveal the source of that.
    https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    Warm regards,
    Dimitris

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello @awijasa,

    we haven’t heard back from you for some time now so I’ll mark this topic as resolved. I’ve already forwarded your feedback to our developers though. If you do use SEOPress as mentioned above, then the workaround showed here:
    https://wordpress.org/support/topic/wrong-usage-of-admin_body_class-filter-2/
    will be enough to get back Defender’s styles.

    Warm regards,
    Dimitris

    Thread Starter awijasa

    (@awijasa)

    Hi @wpmudev-support6,

    Thanks for the update! I don’t use the SEOPress plugin. Setting the priority of admin_body_class call in Defender to 11 solved the problem for me.

    Thanks again,

    @awijasa

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘A script.js file is missing’ is closed to new replies.