WordPress.org

Support

Support » Plugins and Hacks » BruteProtect » Fatal error brought down a large website for non-logged in users

Fatal error brought down a large website for non-logged in users

  • Hello,

    A website I do dev work for just recently went down and when I set WP_DEBUG to true, I got the following error:

    Fatal error: Cannot redeclare class bruteprotect_math_authenticate in /wp-content/plugins/bruteprotect/math-fallback.php on line 7

    They have the most up-to-date version of BruteProtect installed and the issue happened within the past 3 hours. I believe this started after another person updated BruteProtect to the current version, but I can’t confirm that at this time.

    To make things stranger, this issue is only happening on the one site, which is also the only site I deal with that is hosted on RackSpace.

    Either way, you may want to find out why that issue is occurring. One thing I noticed is that at the start of your plugin, you have require_once dirname( __FILE__ ) . '/math-fallback.php';, so if this plugin is loaded, math-fallback.php is loaded too, but then you have include 'math-fallback.php'; in two other places. I might be missing the reason for this, but it doesn’t look like it’s necessary.

    Thanks,
    Faison

    http://wordpress.org/plugins/bruteprotect/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sam Hotchkiss

    @samhotchkiss

    Hi Faison– this is very strange, because the BruteProtect_Math_Authenticate class is wrapped in an if( !class_exists( 'BruteProtect_Math_Authenticate' ) ) conditional expressly to prevent this issue. On top of that, we have over 5,000 users who have updated to the latest version, and this is the only report of this issue.

    Can you try deleting the plugin completely via FTP, and re-uploading a fresh copy?

    This is happening to me too, wasn’t like that 2 days ago. Only installed this plugin recently. Shouldn’t you use include_once() rather than include()?

    I can debug this if necessary. For now, I am uninstalling.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error brought down a large website for non-logged in users’ is closed to new replies.
Skip to toolbar