codefog/contao-news_categories

Error on editing an article

Aybee opened this issue · 2 comments

Aybee commented

Contao 4.13.0
PHP 8.0.16
Tested with version 3.4.15 and 3.4.16

You get an error when you click on the edit icon of an article that contains the modules newscategories_cumulativ and newslist.

Simple error message:
Attempted to load class "Utf8" from namespace "Patchwork". Did you forget a "use" statement for another namespace?

var/logs/:
[2022-03-04T13:03:07.214802+01:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: "Attempted to load class "Utf8" from namespace "Patchwork". Did you forget a "use" statement for another namespace?" at /www/htdocs/xxx/contao/vendor/codefog/contao-news_categories/src/FrontendModule/NewsModule.php line 66 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\ClassNotFoundError(code: 0): Attempted to load class \"Utf8\" from namespace \"Patchwork\".\nDid you forget a \"use\" statement for another namespace? at /www/htdocs/xxx/contao/vendor/codefog/contao-news_categories/src/FrontendModule/NewsModule.php:66)"} []

Same error as here: terminal42/contao-node#35

Fixed in 2c94f94.