TYPO3 - 在自己的扩展名中取消激活cHash会在访问记录时导致错误

时间:2017-12-28 14:17:46

标签: typo3 typo3-8.x typo3-extensions

如果我将noCacheHash =“1”添加到link.action,我可以停用cHash:

<f:link.action action="show" pageUid="43" arguments="{record:record.uid}" noCacheHash="1">{record.name}</f:link.action>

/?tx_abc_abc[record]=1&tx_abc_abc[action]=show&tx_abc_abc[controller]=Abc

但是在尝试访问记录时,我收到以下错误:

Uncaught TYPO3 Exception
#1509296606: Failed to fetch error page "domain/index.php?id=72", reason: Client error: `GET domain/index.php?id=72` resulted in a `401 Unauthorized` response: <script>window.location.href='domain/access-denied/';</script><noscript>Error 401 - Access Deni (truncated...)

20 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::pageErrorHandler("domain/index.php?id=72", "HTTP/1.0 404 Not Found", "Request parameters could not be validated (&cHash empty)")

如何在停用cHash时正确访问记录?

1 个答案:

答案 0 :(得分:0)

这不是noCacheHash参数的原因。我认为你为pageID(43)设置了特殊权限。因此,此页面无法访问此页面。

因此,首先检查此页面的访问权限。