Missing global variable $base_theme_info

Created on 29 May 2019, over 5 years ago
Updated 28 July 2023, over 1 year ago

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.

🐛 Bug report
Status

Needs review

Component

Code

Created by

🇦🇺Australia Begun

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024