Bug #87653
closedcHash error with extbase plugin and routeEnhancer
0%
Description
I get the following error message after calling a mapped news detail URL: "Request parameters could not be validated (&cHash empty)".
Url generation:
<f:link.action action="show" arguments="{article: record}">text</f:link.action>
Route enhancer:
routeEnhancers:
newsdetail:
type: Extbase
extension: Demo
plugin: Newsdetail
routes:
-
routePath: '/detail/{news_title}'
_controller: 'News::show'
_arguments:
news_title: article
defaultController: 'News::show'
aspects:
news_title:
tableName: tx_demo_domain_model_newsarticle
routeFieldName: slug
routeValuePrefix: /
limitToPages:
- 55
Generated url: /de/news/detail/demo-article-title
How can i solve this? I am currently using the setting "feature.requireCHashArgumentForActionArguments = 0" to avoid this issue.
Updated by Alexander Vogt almost 6 years ago
I have solved the issue. The error has occurred due to a "config.defaultGetVars" config.
Updated by Dmitry Dulepov over 5 years ago
Same error here but no config.defaultGetVars
set. Using only default EXT:news routes straight from docs. If I comment these routes, I see cHash in the url and all works fine. With routes I get a cHash error.
Updated by Dmitry Dulepov over 5 years ago
Solution: yes, disable requireCHashArgumentForActionArguments
. See why starting from this message: https://typo3.slack.com/archives/C2ZKN8P7G/p1554990363086600
Updated by Dmitry Dulepov over 5 years ago
- Related to Bug #88136: requireCHashArgumentForActionArguments may cause 404 errors added