Closed thekenshow closed 4 years ago
FYI: Not related to Grav 1.7 but PHP 7.4.
This is happening on PHP 7.2.24.
Thanks.
It looks like $language->getLanguage()
and $language->getDefault()
can both return null.
CC @rhukster
@thekenshow Workaround is to set (default) language in system.yaml.
Installed Sitemap plugin, enabled, browsed to '/sitemap', got the
array_key_exists(): The first argument should be either a string or an integer
error on line 78 of sitemap.php: