WordPress.org

Forums

BruteProtect
Fatal error brought down a large website for non-logged in users (3 posts)

  1. Faison
    Member
    Posted 1 year ago #

    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/

  2. Sam Hotchkiss
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. Rob Record
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BruteProtect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.