There's a lot of "invalid argument supplied for foreach()" happening on PHP 5.6.30:
Warning: Invalid argument supplied for foreach() in Drupal\menu_link_content_visibility\MenuLinkContentVisibilityCache->buildConditions() (line 81 of /var/www/website-name-here/modules/contrib/menu_link_content_visibility/src/MenuLinkContentVisibilityCache.php) #0
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2896687-8.patch | 1.45 KB | xavier.masson |
| #2 | 2896687-2.patch | 2.81 KB | jzavrl |
Comments
Comment #2
jzavrl commentedHave also gotten those myself on 1.x-dev. There is also a different one:
Warning: Invalid argument supplied for foreach() in Drupal\menu_link_content_visibility\MenuLinkContentVisibilityChecker->isVisible() (line 50 of modules/contrib/menu_link_content_visibility/src/MenuLinkContentVisibilityChecker.php)..Attached patch fixes both of these issues in classes
MenuLinkContentVisibilityCheckerandMenuLinkContentVisibilityCache.Comment #3
CatherineOmega commentedThis takes care of both issues and the code looks good to me. Anyone else want to take a look?
Comment #5
luisortizramos commentedPatch added and commited to the dev branch.
Thank you jzavrl and CatherineOmega
Comment #6
luisortizramos commentedComment #8
xavier.massonComment #9
slefevre@ccad.edu commentedThis thread says that the bug is closed, but I just installed 1.1 and I'm getting the error. Was this rolled into 1.1, or is it just in dev?
Comment #10
luisortizramos commentedGood morning,
I've just created a new release that includes this commit. This way we don't need to use the dev version anymore.
KR,