hschottm / tags

Contao tags extension
11 stars 16 forks source link

Contao 4.13.12: TagHelper.php Problem mit getFrontendUrl #87

Closed Misco closed 1 year ago

Misco commented 1 year ago

request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "getFrontendUrl" of class "Contao\Model\Collection"." at /www/htdocs/w01795d8/c4/vendor/hschottm/tags/classes/TagHelper.php line 192 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"getFrontendUrl\" of class \"Contao\Model\Collection\". at /www/htdocs/w01795d8/c4/vendor/hschottm/tags/classes/TagHelper.php:192)"} []

hoffe es gibt einen einfachen fix =)

hschottm commented 1 year ago

Bestimmt, ich kümmere mich gleich daraum

Misco commented 1 year ago

so scheint es zu klappen:

$arrTags[$idx]['url'] = StringUtil::ampersand($pageObj->current()->getFrontendUrl('/tag/' . $tag['tag']));

hschottm commented 1 year ago

Fixed in ef759f02354437ff2a52f966d07063efd939e793