codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
42 stars 24 forks source link

Uncaught PHP Exception TypeError #207

Closed christianbarkowsky closed 1 year ago

christianbarkowsky commented 1 year ago

Haste version: 5.1.2 Contao: 4.13.16 PHP: 8.1 & 8.2

Uncaught PHP Exception TypeError: "Codefog\HasteBundle\EventListener\AjaxReloadListener::onGetFrontendModule(): Argument #2 ($buffer) must be of type string, null given, called in /htdocs/cto2022/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php on line 447" at /htdocs/cto2022/vendor/codefog/contao-haste/src/EventListener/AjaxReloadListener.php line 45 {"exception":"[object] (TypeError(code: 0): Codefog\\HasteBundle\\EventListener\\AjaxReloadListener::onGetFrontendModule(): Argument #2 ($buffer) must be of type string, null given, called in /htdocs/cto2022/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php on line 447 at /htdocs/cto2022/vendor/codefog/contao-haste/src/EventListener/AjaxReloadListener.php:45)"} []

fritzmg commented 1 year ago

This is a follow-up error caused by another extension that returns null instead of a string in a getFrontendModule. You need to analyse the getFrontendModule hooks in your Contao instance.

christianbarkowsky commented 1 year ago

The problem was a 5 years not updated extension. Sorry for the hasty issue.