• Resolved JohnP

    (@johnp)


    I’m tracking down bugs, and see I am getting a warning:

    PHP Warning: Creating default object from empty value

    Location:
    wp-content/plugins/nextend-accordion-menu/library/accordionmenu/treebase.php:108

    Is this plugin compatible with PHP v7.0?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabor

    (@nextendweb_gabor)

    Hi @johnp!

    Yes, the latest version of our menu is compatible with PHP7 and I think your problem was fixed in the latest version. Do you have that installed on your website? The free one’s version is 9.3.4. and the pro one’s is 9.3.9.

    Plugin Author Gabor

    (@nextendweb_gabor)

    .

    • This reply was modified 7 years, 6 months ago by Gabor.
    Thread Starter JohnP

    (@johnp)

    Yes, I am using version 9.3.4.

    I found the forum post from a year ago where you fixed a similar warning from line 62
    https://www.ads-software.com/support/topic/php-warning-fixes-in-9-3-2/, but this seems to be a different issue.

    Plugin Author Gabor

    (@nextendweb_gabor)

    If you open up that file:
    wp-content/plugins/nextend-accordion-menu/library/accordionmenu/treebase.php

    and go to the 108th line, do you see a @ sign in the beginning?:
    @$this->allItems[$s]->opened = true;

    that should hide this kind of messages. If you do see it, then please try to add this code right in front of it:
    if(empty($this->allItems[$s])) $this->allItems[$s] = new stdClass();

    so together it would look like this:

    if(empty($this->allItems[$s])) $this->allItems[$s] = new stdClass();
    @$this->allItems[$s]->opened = true;

    If this wouldn’t work either, please write to us to [email protected] and there we can try to debug this problem further!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Warning: Creating default object from empty value’ is closed to new replies.