- last update
over 1 year ago Patch Failed to Apply
I am getting the following error:
Warning: Invalid argument supplied for foreach() in libraries_info() (line 417 of modules/contrib/libraries/libraries.module)
It appears that `libraries_info()` is looking for a global variable called `$base_theme_info`. I had a look at the Drupal API documentation and noticed that `$base_theme_info` is used as a global variable in Drupal 7 but not in Drupal 8.
I am wondering if the use of the `$base_theme_info` variable could be a left over from the Drupal 7 origins of this module? I am wondering if the use of the variable could be removed completely from the code? I decided to take the conservative approach and created a patch which does a check for `$base_theme_info` before calling it.
Needs review
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.