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!
http://typo3.org/extensions/repository/view/t3extblog
GNU General Public License v2.0
32 stars 18 forks source link

Problem when disabling datePrefix in the routing #257

Closed milenishte closed 1 year ago

milenishte commented 1 year ago

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;

fnagel commented 1 year ago

Thanks for reporting! Fixed in latest master branch!