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

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

tomhatzer opened this issue Β· comments

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

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 8ee5e7a

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\-\_ ]+$'

Glad I could help :-D

I probably should do a hotfix release...

Just released a 5.1.1 bugfix release.

@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. πŸ˜…

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