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.
Hi there!
Today I came across this little didy while using AdaptiveTheme
Warning: Invalid argument supplied for foreach() in adaptivetheme_preprocess_breadcrumb() (line 1027 of /sites/all/themes/contrib/adaptivetheme/at_core/inc/preprocess.inc).
In my sub theme I have actually turned off all breadcrumbs so it seems strange that I am having this error.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2529982-missingvariablecheck-2.patch | 714 bytes | ShaneOnABike |
Comments
Comment #1
ShaneOnABike CreditAttribution: ShaneOnABike commentedThis issue being that there is no actual check to see if the $vars['breadcrumb'] actually exists prior to looping through the breadcrumbs. Whoops!
Here's the patch!
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz as a volunteer and commentedAwesome sauce :)