Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for distinguish class name of parent and ancestor from current menu item #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pIvan
Copy link

@pIvan pIvan commented Dec 30, 2021

Signed-off-by: pIvan pintar.ivan@gmail.com

Copy link

@chilliarbvi chilliarbvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this update out locally. Here are the PHP errors that appear. One is the error that appears on the homepage, one for a top level interior page, and the other for a sub menu interior page.

On Homepage

Notice: Trying to get property 'ID' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Undefined index: in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Trying to get property 'parent_id' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Undefined index: in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Trying to get property 'ID' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 322 Notice: Trying to get property 'parent_id' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 322 Warning: Creating default object from empty value in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 323 Notice: Undefined property: stdClass::$ID in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Undefined index: in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Trying to get property 'parent_id' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Undefined index: in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335

On Interior - top level

Notice: Undefined offset: 0 in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Trying to get property 'ID' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 322 Warning: Creating default object from empty value in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 326 Notice: Undefined property: stdClass::$ID in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Undefined index: in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Trying to get property 'parent_id' of non-object in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335 Notice: Undefined index: in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335

On Interior - sub menu item

Notice: Undefined offset: 0 in /var/www/html/wp-content/plugins/bvi-mega-menu/mega-menu.php on line 335

…fixed issue with undefined index and property
@pIvan
Copy link
Author

pIvan commented Feb 10, 2022

Hi @chilliarbvi,
thanks for the indicated error,
the error with the undefined index was corrected as well as the one with the non-existent property on the object.
All changes should be visible in commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants