Hi,
I’m getting the following PHP errors and warnings in the following lines of code in page-customization.php for the site inquiringsystems.org:
Warning: array_key_exists() expects parameter 2 to be array, null given in /vagrant/www/inquiringsystems/htdocs/wp-content/themes/agile/framework/functions/page-customization.php on line 134
Fatal error: Call to a member function get_theme_option() on a non-object in /vagrant/www/inquiringsystems/htdocs/wp-content/themes/agile/framework/functions/page-customization.php on line 137
Looking at the lines of code in question I see:
if (array_key_exists($option_id, $options_cache))
return $options_cache[$option_id];
$option_value = $mo_theme->get_theme_option($option_id, $default, $single);
I noticed that $options_cache is defined as an array in line 17 of the functions.php file.
For the most part it doesn’t seem to effect any functionality on the site, but only when I’m using WP-CLI to update or manipulate the site’s DB.
Any insights would be appreciated.