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
33 stars 19 forks source link

T3 9.5 with 5.1.0 - Parameter "tx_t3extblog_blogsystem__post" for route "tx_t3extblog_blogsystem_0" must match "\d+" #230

Closed tomhatzer closed 4 years ago

tomhatzer commented 4 years ago

Hi @fnagel !

I've just updated to version 5.1.0 of t3extblog and was immediately presented by the following error message after visiting a page where t3extblog is included 😅

Parameter "tx_t3extblog_blogsystem__post" for route "tx_t3extblog_blogsystem_0" must match "\d+" ("2020-03-03-reach-risiken" given) to generate a corresponding URL.

I haven't changed anything in the default configuration file of the routing, I'm just including it in my sites configuration.yaml. The only thing I did was switch all slugs to the (at that moment) new format y-m-d-<slug>.

Have you ever seen this one here before (had to censor a few things)?

image

Thank you very much!

Best wishes Tom

fnagel commented 4 years ago

You updated TYPO3 too, didn't you? Because there has been no relevant change to the blog routing since quite some time, but with TYPO3 10.4.4 and TYPO3 9.5.15 I needed to fix some requirements (which seem not be be really evaluated before).

Please see and test this commit 8ee5e7add6c5e88c94fc9e61f2fbf51e8c1265a5

tomhatzer commented 4 years ago

Yes, I've updated Typo3 from 9.5.16 to 9.5.19 in the same go. The linked commit fixed the problem. Thank you very very much! 🥰

For everyone else who's got the error message from above and is including the default config from t3extblog using imports: in the sites config.yaml, add this snippet below the imports: block:

routeEnhancers:
  T3extblogBlogsystemPlugin:
    requirements:
      post_page: '\d+'
      post_permalink_uid: '\d+'
      post_title: '^[\d\-\/]{0,11}[\p{Ll}\d\-\_]+$'
      author_title: '^[\p{Ll}\d\-\_]+$'
      category_title: '^[\p{Ll}\d\-\_]+$'
      tag_title: '^[\p{Ll}\p{P}\d\-\_ ]+$'
fnagel commented 4 years ago

Glad I could help :-D

I probably should do a hotfix release...

fnagel commented 4 years ago

Just released a 5.1.1 bugfix release.

tomhatzer commented 4 years ago

@fnagel I think I've found another bug with the URL parameters on the blog overview page: image

Running on 5.1.1 bugfix release and Typo3 9.5.19. 😅

tomhatzer commented 4 years ago

Quickfix for the category title stuff: Append \/ to the regex for category_title resulting in: category_title: '^[\p{Ll}\d\-\_\/]+$'