[Defender] Login Protection Error

Getting the following error:

/wp-content/plugins/wp-defender/app/module/ip-lockout/component/login-protection-api.php on line 411

  • James Morris
    • WordPress Enthusiast

    Hello Jason

    I hope you are well today.

    I've just tested the latest Defender on a fresh install of WordPress and I'm afraid I cannot reproduce any debug error like the above.

    There's a couple troubleshooting steps I'd like you to try to see if we can narrow down the cause of this problem.

    First, could you please run a plugin conflict test to eliminate the possibility of a conflict with another plugin?

    Whenever you perform a plugin conflict test, it's always better to do so on a staging site. You can learn how to create a staging site here.

    The simplest way to perform a plugin conflict test:
    * Login to your site via FTP
    * Navigate to wp-content
    * Rename the plugins folder to _plugins
    * Create a new plugins folder
    * Move the plugin folder (ex: wp-defender) you want to test from _plugins to plugins
    * Then, one at a time, move other plugin folders over from _plugins to plugins until the symptom returns

    NOTE: While you are doing this, do not visit WP Admin -> Plugins on your site. This will ensure that your plugins remain active when you copy them back over.

    If that does not lead to a solution, could you please enable WP_DEBUG and provide us with the output of your debug.log file?

    To enable WP_DEBUG, change the following line in your wp-config.php file:

    define('WP_DEBUG', false);

    To this:

    // Enable WP_DEBUG mode
    define( 'WP_DEBUG', true );
    // Enable Debug logging to the /wp-content/debug.log file
    define( 'WP_DEBUG_LOG', true );
    // Disable display of errors and warnings
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    After you've visited the pages that are causing you problems, please go to wp-content/ on your server via FTP and download the debug.log file to your local computer. Then, open that file with a text editor like notepad (Windows), GEdit (Linux), or TextEdit (Mac). You can then save the file as a .txt file and upload it here as an attachment to your post.

    I look forward to seeing the results of your tests.

    Best regards,

    James Morris

  • Jason
    • WPMU DEV Initiate

    This is difficult to test on a staging site as it has to do with the IP Block. Unfortunately, we can't disable our plugins for a lengthy amount of time to test this. Nor would we want a debut log across the entire site.

  • James Morris
    • WordPress Enthusiast

    Hello Jason

    The code snippet I provided you above to add to wp-config.php will hide any debug output from being rendered to the screen (on page). Rather, it will log the debug output to a file located at wp-content/debug.log. This is the safest way to gather debug information without interrupting the flow and presentation of your site.

    If you have space on the same server, you can create a staging site on a subdomain of the main site such as http://staging.yoursite.com/ and the staging site will have the same IP as your production site. This will help determine whether this is IP related or something else.

    I hope this clarifies a bit.

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.