• Resolved datbvecom

    (@datbvecom)


    I active it on wp3.8, it appear:
    Warning: Illegal string offset ‘title’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 229

    Warning: Illegal string offset ‘title’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 231

    Warning: Illegal string offset ‘avatar’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 229

    Warning: Illegal string offset ‘avatar’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 231

    Warning: Illegal string offset ‘bio’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 229

    Warning: Illegal string offset ‘bio’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 231

    Warning: Illegal string offset ‘social’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 229

    Warning: Illegal string offset ‘social’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 231

    Warning: Illegal string offset ‘posts_link’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 229

    Warning: Illegal string offset ‘posts_link’ in D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php on line 231

    Can you tell me how to preparing it?

    https://www.ads-software.com/plugins/wp-basics/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author laura20

    (@laura20)

    Go to the file D:\xampp\htdocs\wp4shop\wp-content\plugins\wp-basics\admin\classes\class.options_machine.php and change the line 229:

    Wrong:

    foreach ($value['options'] as $key => $option) {
    if (!isset($multi_stored[$key])) {$multi_stored[$key] = '';}
    $of_key_string = $value['id'] . '_' . $key;
    $output .= '<input type="checkbox" class="checkbox of-input" name="'.$value['id'].'['.$key.']'.'" id="'. $of_key_string .'" value="1" '. checked($multi_stored[$key], 1, false) .' /><label class="multicheck" for="'. $of_key_string .'">'. $option .'</label><br />';
    }

    Good:

    foreach ($value['options'] as $key => $option) {
    //if (!isset($multi_stored[$key])) {$multi_stored[$key] = '';}
    $of_key_string = $value['id'] . '_' . $key;
    $output .= '<input type="checkbox" class="checkbox of-input" name="'.$value['id'].'['.$key.']'.'" id="'. $of_key_string .'" value="1" '. checked($multi_stored[$key], 1, false) .' /><label class="multicheck" for="'. $of_key_string .'">'. $option .'</label><br />';
    }

    Is better if you only comment it. Tell me if this solve the error please.

    Thread Starter datbvecom

    (@datbvecom)

    thank you very much.
    you resolved it.

    Plugin Author laura20

    (@laura20)

    you’re welcome. I’m glad I helped.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error’ is closed to new replies.