Typo3 移动到新服务器后InvalidTemplateResourceException无效
我在Typo3 9.5中为我的模板提供了一个站点包扩展。此外,我还有另一个扩展用于特定目的。现在,此扩展在ProviderExtension中搜索模板文件!?!?在我的开发机器上,一切正常。在我将所有内容转移到远程服务器后,在包含扩展插件的页面上会出现此异常。其他页面也可以Typo3 移动到新服务器后InvalidTemplateResourceException无效,typo3,typo3-9.x,Typo3,Typo3 9.x,我在Typo3 9.5中为我的模板提供了一个站点包扩展。此外,我还有另一个扩展用于特定目的。现在,此扩展在ProviderExtension中搜索模板文件!?!?在我的开发机器上,一切正常。在我将所有内容转移到远程服务器后,在包含扩展插件的页面上会出现此异常。其他页面也可以 The Fluid template files enter code here "/home/.sites/822/site4946398/web/bttemplate/public/typo3conf/ext/amtst
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有一个静态打字脚本,它包含在主模板中。这里定义了TemplateRootPath和LayoutRootPath。如前所述,扩建工程是由扩建建筑商建造的,长期运行良好
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/。。。没有必要使用partials
谢谢你的帮助!
Thomas我怀疑您的常量
page.fluidtemplate.partialRootPath
设置为EXT:amtstafel/Resources/Private/Partials/
此常量用于
页面。10.TemplateRootPath.1
您提到的提供者扩展。这是一个流量概念。假设您使用flux是正确的吗?不,对不起,关于措辞。。。我的意思是一个网站包,我不使用通量。你能给我看一下主页对象的打字稿吗?FLUIDTEMPLATE可能有错误的*根路径。这只是因为猜测这是一个页面而不是一个内容模板(从部分/导航判断),我发现我所有用extensionbuilder构建的ExtensionOn都会出现此错误。感谢您的帮助@Jonas Eberle,请参阅上面的打字脚本。。。