Defender not useable due to no style

Defender doesn't display correctly; it's as if there is no CSS styling. Not had this before and we support 60 other websites. This site (thecubelab.co.uk) was a site at Flywheel and we recently moved it to a new server / host so not sure if that is the reason?

Steve

  • Nithin Ramdas
    • Support Wizard

    Hi Steve,

    Hope you are doing good today. :slight_smile:

    On giving a closer look, the issue is more related with Campaign Monitor plugin, once I deactivated the plugin the Defender style loads fine.

    This is more of a bug with Campaign Monitor plugin, as mentioned in here:

    https://wordpress.org/support/topic/wrong-usage-of-admin_body_class-filter/

    Where the solution is to edit the Application.php file located under:

    wp-content/plugins/forms-for-campaign-monitor/forms/core/Application.phpforms/core/Application.php

    And by changing the function:

    public static function addBodyClass() {

    }

    To:

    public static function addBodyClass( $classes )
    {
    return $classes;
    }

    Should fix the issue. Would recommend you to bring this into the Campaign Monitors support, so such issues could be prevented.

    However, I’ll also bring this into our developer’s attention to see whether there is anything that could be done within the Defender side too. Have a nice day ahead. :slight_smile:

    Regards,

    Nithin

  • Helen
    • WPMU DEV Initiate

    I have this same bug after updating a site to the latest version 2.1.1.1 with the 2 Factor Authentication fix. I do not run Campaign Monitor and it was fine until the latest update, so now have to work out which plugin is conflicting.

  • Helen
    • WPMU DEV Initiate

    I believe my conflict is with the SEOPress plugin’s latest update. I tested on another site, updated to the latest Defender and was all fine, then I update to latest SEOPress and the styling on the Defender pages breaks.

  • Helen
    • WPMU DEV Initiate

    Defender 2.1.1 had the same issue with the latest SEOPress update.

    The oldest version of Defender I had running anywhere (whoops) was 2.0.1 and that worked fine after updating SEOPress to the latest version, but then once I updated Defender the styling broke.