首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >TYPO3升级( 7.6至10):找不到站点配置

TYPO3升级( 7.6至10):找不到站点配置
EN

Stack Overflow用户
提问于 2020-04-02 20:50:09
回答 2查看 8.8K关注 0票数 5

我花了一天的时间试图将我的TYPO3安装从7.6版升级到10.4版,在这两者之间进行了一些斗争,一切都进行得很顺利,以至于我可以登录到后端等等。

几个小时以来,我面临的问题是我无法胜任工作。

我得到以下错误:

找不到

页面。该页不存在或无法访问。原因:没有站点配置找到

我已经为谷歌滚动了相当一段时间,我现在似乎找不到正确的解决方案。

我的方法是用composer安装T3-10,然后迁移DB并运行升级向导。我还检查了后端中的“站点配置”,以及文件系统中的站点配置部分,似乎一切正常。

代码语言:javascript
运行
复制
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

我确信这只是一些我现在似乎找不到的小东西,还有其他人在这方面有经验吗?

EN

回答 2

Stack Overflow用户

发布于 2021-04-07 05:21:17

代理后面的TYPO3安装有问题。在全局配置中设置以下值解决了我的问题。(可以通过管理工具中的后端完成LocalConfiguration.php设置,→配置安装范围广泛的选项,也可以直接在→文件中完成)

代码语言:javascript
运行
复制
'HTTP' => [
   'proxy' => '<yourProxyIp:yourProxyPort>',
],
'SYS' => [
    'reverseProxyHeaderMultiValue' => 'last',
    'reverseProxyIP' => '<yourReverseProxyIp>',
    'reverseProxySSL' => '*'
]
票数 1
EN

Stack Overflow用户

发布于 2021-06-01 06:48:44

您是否在TypoScript设置/常量中使用旧条件?从TYPO3 10开始,您需要使用Symfony表达式语言。请看这里,并在需要的地方替换代码中的代码。

代码语言:javascript
运行
复制
[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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61000887

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档