Title: Illegal string offset with BBPress
Last modified: March 7, 2019

---

# Illegal string offset with BBPress

 *  Resolved [hpiirainen](https://wordpress.org/support/users/hpiirainen/)
 * (@hpiirainen)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/)
 * 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](https://wordpress.org/support/users/hpiirainen/)
 * (@hpiirainen)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/#post-11286257)
 * … and BBPress version is 2.5.14.
 *  Plugin Author [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/#post-11286871)
 * 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](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/#post-11287094)
 * A new version is now available which should avoid that issue.
 * [https://wordpress.org/plugins/spam-destroyer/](https://wordpress.org/plugins/spam-destroyer/)
 * If you experience any problems, please let me know 🙂
 * Thanks again for finding this issue.
 *  Thread Starter [hpiirainen](https://wordpress.org/support/users/hpiirainen/)
 * (@hpiirainen)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/#post-11303203)
 * 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](https://wordpress.org/support/users/ryanhellyer/)
 * (@ryanhellyer)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/#post-11303221)
 * 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.

 * ![](https://ps.w.org/spam-destroyer/assets/icon-128x128.png?rev=1050320)
 * [Spam Destroyer](https://wordpress.org/plugins/spam-destroyer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/spam-destroyer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/spam-destroyer/)
 * [Active Topics](https://wordpress.org/support/plugin/spam-destroyer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/spam-destroyer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/spam-destroyer/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ryan Hellyer](https://wordpress.org/support/users/ryanhellyer/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/illegal-string-offset-with-bbpress/#post-11303221)
 * Status: resolved