Im seeing these php notices generated from version 6.x-1.13:
# Undefined index: link in simplemenu_tree_output() (line 418 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: link in simplemenu_tree_output() (line 428 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: link in simplemenu_tree_output() (line 436 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: link in simplemenu_tree_output() (line 436 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: below in simplemenu_tree_output() (line 442 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: link in simplemenu_tree_output() (line 447 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: link in simplemenu_tree_output() (line 459 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
# Notice: Undefined index: link in simplemenu_tree_output() (line 462 of /Users/sarnold/Sites/aws-d6/public_html/sites/all/modules/contrib/simplemenu/simplemenu.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | simplemenu1059196.patch | 954 bytes | Zardoc |
Comments
Comment #1
Zardoc commentedHere is a patch that will resolve the php notices.
Comment #2
AlexisWilke commentedZardoc,
If you could try with the development version, it would be great. Quite a few things have changed .
Now I always run with the E_NOTICEs turned on. I run many personal websites that way, on purpose, to detect potential problems. I never had the ones you just reported. And if the ['link'] entry is not available, then the array is just plain invalid. So I don't see how you'd get such errors.
Thus, although the fix looks good, I don't feel like applying it since that error just shouldn't happen. It would be interesting to know why you get it. What I can think of is interaction with another menu module which generates invalid entries.
Thank you.
Alexis Wilke