Fatal error: Uncaught Error: Call to a member function toArray() on null in /var/www/clients/client1/web2/web/custom/plugins/fourtwosixPreOrderAdvancedModellbahn/Subscriber/TemplateRegistration.php:151 Stack trace: #0 /var/www/clients/client1/web2/web/engine/Library/Enlight/Event/Handler/Default.php(87): fourtwosixPreOrderAdvancedModellbahn\Subscriber\TemplateRegistration->onPostDispatchDetail() #1 /var/www/clients/client1/web2/web/engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute() #2 /var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Action.php(206): Enlight_Event_EventManager->notify() #3 /var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight_Controller_Action->dispatch() #4 /var/www/clients/client1/web2/web/engine/Library/Enlight/Controller/Front.php(228): Enlight_Controller_Dispatcher_Default->dispatch() #5 /var/www/clients/client1/web2/web/engine/Shopware/Kernel.php(188): Enlight_Controller_Front->dispatch() # in /var/www/clients/client1/web2/web/custom/plugins/fourtwosixPreOrderAdvancedModellbahn/Subscriber/TemplateRegistration.php on line 151