• Resolved hpiirainen

    (@hpiirainen)


    Plugin version 2.1.1
    WP version 5.0.3
    PHP 7.0.33

    When the plugin catches bots trying to create new topics or replies, I’m seeing the following errors in error log:

    PHP Warning: Illegal string offset 'errors' in spam-destroyer/inc/class-spam-destroyer.php on line 332 (or line 345 if it’s a new reply)

    and

    PHP Fatal error: Uncaught Error: Call to a member function add() on string in spam-destroyer/inc/class-spam-destroyer.php:332

    Can you reproduce?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter hpiirainen

    (@hpiirainen)

    … and BBPress version is 2.5.14.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Thanks for spotting this problem ?? I wasn’t aware that the array key at that point was at risk of not existing. I’m adding an isset check around it right now to work around this problem. I’ll upload the change (probably within the next hour) for this fix.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    A new version is now available which should avoid that issue.

    https://www.ads-software.com/plugins/spam-destroyer/

    If you experience any problems, please let me know ??

    Thanks again for finding this issue.

    Thread Starter hpiirainen

    (@hpiirainen)

    I updated the plugin yesterday, and we’ve now received multiple new topics that are obviously made by spambots. Until yesterday, no spam had gotten through.

    By looking at BBPress code, in my opinion the $result that check_for_post_evilness receives seems to be a string (content in textarea), not an array. It looks like this is not working with BBPress forms anymore.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Urgh, I’ll look into this. I’m not sure why this would need to change suddenly. I”m sure it can be changed to make it work again though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Illegal string offset with BBPress’ is closed to new replies.