移动到新服务器后出现 InvalidTemplateResourceException

InvalidTemplateResourceException after move to new server

我的 Typo3 9.5 模板有一个网站包扩展。此外,我还有另一个用于特定目的的扩展。现在这个扩展在 ProviderExtension 中搜索模板文件!?!?在我的开发机器上一切正常。在我将所有内容传输到远程服务器后,在包含扩展插件的那些页面上会出现此异常。其他页面有效。

The Fluid template files enter code here
"/home/.sites/822/site4946398/web/bttemplate/public/typo3conf/ext/amtstafel/Resources/Private/Partials/Navigation/Top.html", 
"/home/.sites/822/site4946398/web/bttemplate/public/typo3conf/ext/amtstafel/Resources/Private/Partials/Navigation/Top" 
could not be loaded.

这是网站模板的打字错误

page = PAGE
page {
    config.index_enable = 1
    typeNum = 0
    shortcutIcon = EXT:btbuerger2/Resources/Public/Icons/favicon.ico
    10 = FLUIDTEMPLATE
    10 {
        templateName = TEXT
        templateName {
            cObject = TEXT
            cObject {
                data = pagelayout
                required = 1
                case = uppercamelcase
                split {
                    token = pagets__
                    cObjNum = 1
                    1.current = 1
                }
            }
            ifEmpty = Default
        }
        templateRootPaths {
            0 = EXT:btbuerger2/Resources/Private/Templates/Page/
            1 = {$page.fluidtemplate.templateRootPath}
        }
        partialRootPaths {
            0 = EXT:btbuerger2/Resources/Private/Partials/Page/
            1 = {$page.fluidtemplate.partialRootPath}
        }
        layoutRootPaths {
            0 = EXT:btbuerger2/Resources/Private/Layouts/Page/
            1 = {$page.fluidtemplate.layoutRootPath}
        }
...

扩展名 amtstafel 有一个包含在主模板中的静态拼写错误。这里定义了 templateRootPaths 和 layoutRootPaths。如前所述,Extension 是使用 Extension-Builder 构建的,并且可以正常工作很长时间..

plugin.tx_amtstafel_bulletinentry {
    view {
        templateRootPaths.0 = EXT:{extension.shortExtensionKey}/Resources/Private/Templates/
        templateRootPaths.1 = {$plugin.tx_amtstafel_bulletinentry.view.templateRootPath}
        layoutRootPaths.0 = EXT:tx_amtstafel/Resources/Private/Layouts/
        layoutRootPaths.1 = {$plugin.tx_amtstafel_bulletinentry.view.layoutRootPath}
    }

"bttemplate"为模板扩展名,"amtstafel"为附加扩展名。 代替 .../amtstafe/... 不需要部分 ...

感谢您的帮助! 托马斯

我怀疑你的常量 page.fluidtemplate.partialRootPath 设置为 EXT:amtstafel/Resources/Private/Partials/

此常量用于您的 page.10.templateRootPaths.1