Support » Plugin: bbPress - New UI » Warning: Illegal string offset 'checkbox'

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author daniluk4000

    (@daniluk4000)

    I DON’T know how to fix it. Sorry.

    Is there a workaround, such as removing the checkboxes and only using the light style?

    Plugin Author daniluk4000

    (@daniluk4000)

    Working on solutions. Wait

    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!

    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

    (@daniluk4000)

    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

    (@daniluk4000)

    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.