• Resolved vitsippa

    (@vitsippa)


    Hi, I have installed Nextend Accordion Menu and I love it! Everything seems to be working fine in the frontend.
    But I get a lot of error-logs in my web-hotel about “line 62” on different pages:

    PHP Warning: Creating default object from empty value in /XXX/content/live/XXXXX/wp-content/plugins/nextend-accordion-menu/types/wordpress/wordpress/menu.php on line 62, referer: XXXXX

    I don´t know anything about PHP… What is wrong and can I or you do something about it?

    (Using Headway Theme and latest WP.)

    https://wordpress.org/plugins/nextend-accordion-menu/

Viewing 1 replies (of 1 total)
  • Plugin Author Gabor

    (@nextendweb_gabor)

    Hi! That message can appear, when the error reporting is higher in your server, but it’s not really an error, just a warning. Please open up that file, and look for that line 62. codepart:

    for ($i = 0; $i < count($items); $i++) {
                $items[$i]->id = $items[$i]->ID;
                $items[$i]->parent = $items[$i]->menu_item_parent;
                $allItems[$items[$i]->id] = $items[$i];
            }

    then put one more line in it:

    for ($i = 0; $i < count($items); $i++) {
                if (!isset($items[$i])) $items[$i] = new stdClass();
                $items[$i]->id = $items[$i]->ID;
                $items[$i]->parent = $items[$i]->menu_item_parent;
                $allItems[$items[$i]->id] = $items[$i];
            }

    this should fix your problem!

Viewing 1 replies (of 1 total)

The topic ‘error-log line 62?’ is closed to new replies.