fnagel / t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!

Home Page:http://typo3.org/extensions/repository/view/t3extblog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when disabling datePrefix in the routing

milenishte opened this issue · comments

Prerequisites

TYPO3 v11.5.18
PHP 7.4

Description

When the datePrefix is removed from the routing configuration, the following exception occurs:

(1/1) TypeError

Typed property FelixNagel\T3extblog\Routing\Aspect\PostMapper::$datePrefix must be string, null used
in /var/www/public/typo3conf/ext/t3extblog/Classes/Routing/Aspect/PostMapper.php line 57

The problem is that in PostMapper.php the properties are defined as strings and don't accept null as a value:
protected string $datePrefix;
protected string $datePrefixRegex;

Thanks for reporting! Fixed in latest master branch!