Fatal error: Uncaught Error: Call to a member function getSettingsKey() on null in
./omeka/omeka-s/application/src/Service/ViewHelper/ThemeSettingFactory.php:24Stack trace: #0
./omeka/omeka-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(765):
Omeka\Service\ViewHelper\ThemeSettingFactory->__invoke() #1
./omeka/omeka-s/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(201):
Laminas\ServiceManager\ServiceManager->doCreate() #2
./omeka/omeka-s/vendor/laminas/laminas-servicemanager/src/AbstractPluginManager.php(153):
Laminas\ServiceManager\ServiceManager->get() #3
./omeka/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(375):
Laminas\ServiceManager\AbstractPluginManager->get() #4
./omeka/omeka-s/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(393):
Laminas\View\Renderer\PhpRenderer->plugin() #5
./omeka/omeka-s/themes/my_theme/view/layout/ in
./omeka/omeka-s/application/src/Service/ViewHelper/ThemeSettingFactory.php on line 24
I can’t for the life of me work out where to fix this. So I started commenting out everything referenced to $this->themeSetting() in the index.phtml file, but that quickly got out of control.
Your problem is, probably, that your layout and/or index page view is using calls to get site and/or theme settings: both of those things only work in the context of a “current site,” and there is no current site on the global pages.