Closed jonnysp closed 3 years ago
It's caused by #2072 and happens at https://github.com/contao/contao/blob/4.x/faq-bundle/src/Resources/contao/modules/ModuleFaqPage.php#L110. Instead, the code should probably be
->setMetadata($objFaq->current()->getOverwriteMetadata())
/cc @m-vo
Hmm, how do I reproduce this? In my demo, images are showing just fine for FAQ entries.
Nevermind, I got it.
see #2788
After updating to 4.11, the images in the faq entries do not work.
[2021-02-22T10:51:49.321582+01:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "getOverwriteMetadata" of class "Contao\Model\Collection"." at C:\xampp\htdocs\contao4\vendor\contao\faq-bundle\src\Resources\contao\modules\ModuleFaqPage.php line 110 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"getOverwriteMetadata\" of class \"Contao\Model\Collection\". at C:\xampp\htdocs\contao4\vendor\contao\faq-bundle\src\Resources\contao\modules\ModuleFaqPage.php:110)"} []