Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Warning: Invalid argument supplied for foreach() in _rootcandy_besturlmatch() (line 268 of
/sites/all/themes/rootcandy/template.php).
Warning: Invalid argument supplied for foreach() in rootcandy_links__rc_main_navigation() (line 142 of /sites/all/themes/rootcandy/template.php).
Comment | File | Size | Author |
---|---|---|---|
#2 | root_candy-empty-navigation-menu-causes-issues-1541640-2.patch | 766 bytes | B-Prod |
Comments
Comment #1
sign CreditAttribution: sign commentedCan't reproduce,
can you give me some more info?
What links if any, etc...?
Comment #2
B-Prod CreditAttribution: B-Prod commentedIn the function
rootcandy_preprocess_page()
, the$rootcandy_navigation
variable may be an empty string, according to the stored settings.If so, this empty string is passed to the theme
links__rc_main_navigation
and causes issue in therootcandy_links__rc_main_navigation()
function, that does not take care of such case and always expects an array of links.Comment #3
jhr CreditAttribution: jhr commentedI was getting the same warnings. Used #2 patched, no more warnings.
Comment #4
B-Prod CreditAttribution: B-Prod commentedSet issue as RTBC, according to jhr.