Support » Plugin: YUZO » Undefined variable

  • I have this notice in widget
    Notice: Undefined variable: posts in /home/…/public_html/wp-content/plugins/yuzo-related-post/public/classes/class-related.php on line 552 Notice: Trying to get property ‘request’ of non-object in /home/…/public_html/wp-content/plugins/yuzo-related-post/public/classes/class-related.php on line 552 Warning: Invalid argument supplied for foreach() in /home/…/public_html/wp-content/plugins/yuzo-related-post/public/functions/helper.php on line 63

    ****
    I add bottom code to class-related.php and fix it, please in next update plugin fix it.
    global $ids;
    $posts = new \stdClass();
    $posts->request= 1;

    • This topic was modified 10 months, 3 weeks ago by leilaan.
    • This topic was modified 10 months, 3 weeks ago by leilaan.
  • The topic ‘Undefined variable’ is closed to new replies.