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

时间:2020-04-02 20:50:09

标签: typo3 typo3-10.x

我一直忙于整天尝试将TYPO3安装从7.6版本升级到10.4,并且在所有事情之间都进行了一些努力,以至于我可以登录到后端等等。

我几个小时现在面临的问题是我无法让前端工作。

我收到以下错误:

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

我已经为Google滚动了很长时间,但现在似乎找不到正确的解决方案。

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

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

我确定这只是我现在似乎找不到的其他人遇到的一些东西吗?

4 个答案:

答案 0 :(得分:1)

您是否在 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

答案 1 :(得分:0)

我在将项目 (10.4.14) 从本地开发人员部署到舞台环境时遇到了同样的问题。

由于缺少 SSL 证书,Apache 2.4 中的配置。指向丢失的证书文件。 修复此问题后,找到了站点配置。

答案 2 :(得分:0)

在代理后面安装 TYPO3 时遇到问题。在全局配置中设置以下值解决了我的问题。 (可以通过后端在管理工具设置配置安装范围选项或直接在LocalConfiguration.php文件中完成)< /p>

'HTTP' => [
   'proxy' => '<yourProxyIp:yourProxyPort>',
],
'SYS' => [
    'reverseProxyHeaderMultiValue' => 'last',
    'reverseProxyIP' => '<yourReverseProxyIp>',
    'reverseProxySSL' => '*'
]

答案 3 :(得分:0)

我遇到了同样的问题,因为我在站点 conf 中写了一个 http:// url。 使用 https:// 以及没有 SSL 证书,一切都很好。