我花了一天的时间试图将我的TYPO3安装从7.6版升级到10.4版,在这两者之间进行了一些斗争,一切都进行得很顺利,以至于我可以登录到后端等等。
几个小时以来,我面临的问题是我无法胜任工作。
我得到以下错误:
找不到
页面。该页不存在或无法访问。原因:没有站点配置找到
我已经为谷歌滚动了相当一段时间,我现在似乎找不到正确的解决方案。
我的方法是用composer安装T3-10,然后迁移DB并运行升级向导。我还检查了后端中的“站点配置”,以及文件系统中的站点配置部分,似乎一切正常。
base: 'https://mydomain.local/'
baseVariants: {},
errorHandling: {},
languages:
-
title: Deutsch
enabled: true
languageId: '0'
base: /
typo3Language: de
locale: de_DE
iso-639-1: de
navigationTitle: German
hreflang: de_DE
direction: ltr
flag: de
websiteTitle: ''
rootPageId: 1
routes: ''
websiteTitle: XYZ
我确信这只是一些我现在似乎找不到的小东西,还有其他人在这方面有经验吗?
发布于 2021-04-07 05:21:17
代理后面的TYPO3安装有问题。在全局配置中设置以下值解决了我的问题。(可以通过管理工具中的后端完成LocalConfiguration.php
设置,→配置安装范围广泛的选项,也可以直接在→文件中完成)
'HTTP' => [
'proxy' => '<yourProxyIp:yourProxyPort>',
],
'SYS' => [
'reverseProxyHeaderMultiValue' => 'last',
'reverseProxyIP' => '<yourReverseProxyIp>',
'reverseProxySSL' => '*'
]
发布于 2021-06-01 06:48:44
您是否在TypoScript设置/常量中使用旧条件?从TYPO3 10开始,您需要使用Symfony表达式语言。请看这里,并在需要的地方替换代码中的代码。
[page["uid"] in 18..45]
# This condition matches if current page uid is between 18 and 45
# Not possible with old syntax
[END]
[34 in tree.rootLineIds || 36 in tree.rootLineIds]
# This condition matches, if the page viewed is or is a subpage to page 34 or page 36
# Old Syntax: [PIDinRootline = 34,36]
[END]
[loginUser('*')]
# Old syntax: [loginUser = *]
[END]
[page["field"] == "value"]
# Old syntax: [page|field = value]
[END]
[loginUser('*') == false]
# Old syntax: [loginUser = ]
[END]
[getTSFE().id >= 10]
# Old Syntax [globalVar = TSFE:id >= 10]
[END]
[applicationContext == "Production" && userId == 15]
# This condition match if application context is "Production" AND logged in user has the uid 15
# Old syntax: [applicationContext = "Production"] && [loginUser = 15]
[END]
[request.getNormalizedParams().getHttpHost() == 'typo3.org']
# This condition matches if current hostname is typo3.org
# Old Syntax: [globalString = IENV:HTTP_HOST = www.typo3.org]
[END]
[like(request.getNormalizedParams().getHttpHost(), "*.devbox.local")]
# This condition matches if current hostname is any subdomain of devbox.local
# Old Syntax: [globalString = IENV:HTTP_HOST = *.devbox.local]
[END]
[page["uid"] in [1,2,3,4] || 5 in tree.rootLineIds]
# This condition matches if current page uid is either 1,2,3 or 4
# or if the current page is 5 or any subpage of 5
[END]
[backend.user.isLoggedIn]
# This condition matches if a backend user is logged in
# Old syntax: [globalVar = TSFE:beUserLogin = 1]
[END]
[traverse(request.getQueryParams(), 'tx_blog_tag/tag') > 0]
# This condition matches if current query parameters have tx_blog_tag[tag] set to a value greater than zero
[END]
来源:https://usetypo3.com/symfony-expression-language-in-typo3.html
https://stackoverflow.com/questions/61000887
复制相似问题