Title: A script.js file is missing
Last modified: March 21, 2019

---

# A script.js file is missing

 *  Resolved [awijasa](https://wordpress.org/support/users/awijasa/)
 * (@awijasa)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/)
 * defender-security/app/module/audit/js/script.js is missing.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/#post-11338166)
 * Hello [@awijasa](https://wordpress.org/support/users/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](https://wordpress.org/support/users/awijasa/)
 * (@awijasa)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/#post-11347574)
 * Hi [@wpmudev-support9](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/awijasa/)
    -  This reply was modified 7 years, 2 months ago by [awijasa](https://wordpress.org/support/users/awijasa/).
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/#post-11349876)
 * Hello [@awijasa](https://wordpress.org/support/users/awijasa/),
 * hope you’re doing well and appreciate the report on this.
 * Are you maybe using the [https://wordpress.org/plugins/wp-seopress/](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](https://premium.wpmudev.org/wp-content/uploads/2015/09/Support-Process-Support-Process.gif)
 * Warm regards,
    Dimitris
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/#post-11400918)
 * Hello [@awijasa](https://wordpress.org/support/users/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/](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](https://wordpress.org/support/users/awijasa/)
 * (@awijasa)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/#post-11401023)
 * Hi [@wpmudev-support6](https://wordpress.org/support/users/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](https://wordpress.org/support/users/awijasa/)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘A script.js file is missing’ is closed to new replies.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [awijasa](https://wordpress.org/support/users/awijasa/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/a-script-js-file-is-missing/#post-11401023)
 * Status: resolved