TYPO3 前端:找不到表单操作结果页面



我正在研究从 6.2.31 到 8.7.19 的 TYPO3 迁移。

在我的模板中,我正在使用导航栏,该导航栏应根据类别过滤视频列表。导航栏是一个公式器:

<f:if condition="{loggedIn}">
<f:then>
<form name="audit_vw_filter" method="post" id="audit_vw_filterForm"
action="?tx_vidverwaltung_vidverwaltungfrontend[action]=listSelectedMember&tx_vidverwaltung_vidverwaltungfrontend[controller]=FrontendVideo">
</f:then>
<f:else>
<form name="audit_vw_filter" method="post" id="audit_vw_filterForm"
action="?tx_vidverwaltung_vidverwaltungfrontend[action]=listSelectedPublic&tx_vidverwaltung_vidverwaltungfrontend[controller]=FrontendVideo">
</f:else>
</f:if>
...
<f:for each="{categories}" as="category" iteration="i">
<div>
//list the category
<span id="fontRed{category.uid}" class="vw_navigationbarFilter filterLinkCategory" onclick="setActualCategory('{category.name}','{category.uid}')">{category.name}</span>
</div>
...
</f:for>
</f:form>

在 JavaScript 中,我在单击每个类别时将其声明为提交。

...    
$("#vw_filterForm").submit();

所以现在应该执行我的表单中的操作并调用我的"前端视频"控制器,它应该以调试的形式给我反馈。

public function listSelectedMemberAction () {
DebuggerUtility::var_dump("Hello World");
...
}

似乎没有达到控制器的功能。 取而代之的是友好的"找不到页面":/

正如预期的那样,URL 是:

http://example.de/.../.../?tx_vidverwaltung_vidverwaltungfrontend[action]=listSelectedMember&tx_vidverwaltung_vidverwaltungfrontend[controller]=FrontendVideo

在旧版本6.2.31上,它工作正常。所以也许我调用控制器函数的方式发生了变化,或者可能是 realurl 等问题......

提前感谢!

我发现了问题:

在较旧的 TYPO3 版本中,默认情况下TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError'] 设置为 true,因此如果 cHash 为空,则会输出错误消息。

所以我倾向于将pageNotFoundOnCHashError恢复为"false"作为默认值。

要做到这一点,请进入您的

安装工具> 前端的所有配置>

并将页面未找到CHashError 更改为 false

[FE][pageNotFoundOnCHashError] = false

最新更新