簡體   English   中英

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");
    ...
}

似乎未達到控制器的功能。 而是有一個友好的“找不到頁面”:/

如預期的那樣,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”作為默認值。

為此,請進入您的

安裝工具>所有配置>前端

並將pageNotFoundOnCHashError更改為false

[FE][pageNotFoundOnCHashError] = false

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM