TYPO3 Frontent:未找到表单操作结果页面
TYPO3 Frontent: Form Action results Page not found
我正在将 TYPO3 从 6.2.31 迁移到 8.7.19。
在我的模板中,我使用了一个导航栏,它应该根据类别过滤视频列表。导航栏是一个公式:
<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();
所以现在应该执行我表单中的操作并调用我的 'FrontendVideo' 控制器,它应该以调试的形式给我反馈。
public function listSelectedMemberAction () {
DebuggerUtility::var_dump("Hello World");
...
}
控制器的功能好像没有达到。
相反,有一个友好的 "Page not found" :/
正如预期的那样,URL 是:
http://example.de/.../.../?tx_vidverwaltung_vidverwaltungfrontend[action]=listSelectedMember&tx_vidverwaltung_vidverwaltungfrontend[controller]=FrontendVideo
在旧版本 6.2.31 上运行良好。所以也许我调用控制器函数的方式发生了变化,或者 realurl 等可能有问题....
提前致谢!
我发现了问题:
In the older TYPO3 versions TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError'] was set to true by default, so if the cHash is empty the error message is outputed.
所以我倾向于将 pageNotFoundOnCHashError 恢复为 "false" 作为默认值。
要做到这一点,请进入您的
安装工具 > 所有配置 > 前端
并将 pageNotFoundOnCHashError 更改为 false
[FE][pageNotFoundOnCHashError] = false
我正在将 TYPO3 从 6.2.31 迁移到 8.7.19。
在我的模板中,我使用了一个导航栏,它应该根据类别过滤视频列表。导航栏是一个公式:
<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();
所以现在应该执行我表单中的操作并调用我的 'FrontendVideo' 控制器,它应该以调试的形式给我反馈。
public function listSelectedMemberAction () {
DebuggerUtility::var_dump("Hello World");
...
}
控制器的功能好像没有达到。 相反,有一个友好的 "Page not found" :/
正如预期的那样,URL 是:
http://example.de/.../.../?tx_vidverwaltung_vidverwaltungfrontend[action]=listSelectedMember&tx_vidverwaltung_vidverwaltungfrontend[controller]=FrontendVideo
在旧版本 6.2.31 上运行良好。所以也许我调用控制器函数的方式发生了变化,或者 realurl 等可能有问题....
提前致谢!
我发现了问题:
In the older TYPO3 versions TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError'] was set to true by default, so if the cHash is empty the error message is outputed.
所以我倾向于将 pageNotFoundOnCHashError 恢复为 "false" 作为默认值。
要做到这一点,请进入您的
安装工具 > 所有配置 > 前端
并将 pageNotFoundOnCHashError 更改为 false
[FE][pageNotFoundOnCHashError] = false