Title: Warning: Illegal string offset &#039;checkbox&#039;
Last modified: August 22, 2016

---

# Warning: Illegal string offset 'checkbox'

 *  Resolved [christicehurst](https://wordpress.org/support/users/christicehurst/)
 * (@christicehurst)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/)
 * There’s a error above the forum where I need to get it fixed. Also the forum 
   it self is not looking right. I’ll investigate more into that latter on.
 * The theme itself has the chance to really help bbpress alot in design etc.
 * Here’s my site: [http://www.christicehurst.me/forums](http://www.christicehurst.me/forums)
 * [https://wordpress.org/plugins/bbpress-new-ui/](https://wordpress.org/plugins/bbpress-new-ui/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [daniluk4000](https://wordpress.org/support/users/daniluk4000/)
 * (@daniluk4000)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5527811)
 * I DON’T know how to fix it. Sorry.
 *  Thread Starter [christicehurst](https://wordpress.org/support/users/christicehurst/)
 * (@christicehurst)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5527813)
 * Is there a workaround, such as removing the checkboxes and only using the light
   style?
 *  Plugin Author [daniluk4000](https://wordpress.org/support/users/daniluk4000/)
 * (@daniluk4000)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5527815)
 * Working on solutions. Wait
 *  [dconcha](https://wordpress.org/support/users/dconcha/)
 * (@dconcha)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5527997)
 * Hey gang, it was a simple fix thanks to some quick searching on stackoverflow.
 * Looks like on line 19 of bbpress-new-ui/bbpress-new-ui.php you had:
    `if ($val['
   checkbox'] == 1) {`
 * This was throwing the string offset warning beause $val is not an array because
   in the line before it you set:
    `$val = $val['checkbox']`
 * So to fix it and correctly compare the value of $val just change line 19 to:
   `
   if ($val == 1) {`
 * Changed it in my plugins -> editor (via the wordpress admin page) and everything
   works fine now.
 * Please update the plugin with this fix so everyone else can benefit from it. 
   Thanks!
 *  [dconcha](https://wordpress.org/support/users/dconcha/)
 * (@dconcha)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5527998)
 * Looks like you had the same problem on line 66 of that file. Just change it there
   as well to look for $val == 1 vs. $val[‘checkbox’] == 1
 *  Plugin Author [daniluk4000](https://wordpress.org/support/users/daniluk4000/)
 * (@daniluk4000)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5528001)
 * It didn’t help because is not fixed problem with $val = $val[‘checkbox’]:
    Notice:
   Uninitialized string offset: 0 in /home/a8330823/public_html/wp-content/plugins/
   bbpress-new-ui/bbpress-new-ui.php on line 18
 *  Plugin Author [daniluk4000](https://wordpress.org/support/users/daniluk4000/)
 * (@daniluk4000)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5528002)
 * But problem with “Warning: Illegal string offset ‘checkbox’ ” resolved, thx

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Warning: Illegal string offset 'checkbox'’ is closed to new replies.

 * ![](https://ps.w.org/bbpress-new-ui/assets/icon-256x256.png?rev=1161125)
 * [bbPress - New UI](https://wordpress.org/plugins/bbpress-new-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-new-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-new-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-new-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-new-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-new-ui/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [daniluk4000](https://wordpress.org/support/users/daniluk4000/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-checkbox/#post-5528002)
 * Status: resolved