3

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

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

我收到以下错误:

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

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

我采用的方法是使用 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

4 回答 4

1

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

于 2021-05-30T20:13:43.777 回答
1

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

[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

于 2021-06-01T06:48:44.657 回答
1

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

'HTTP' => [
   'proxy' => '<yourProxyIp:yourProxyPort>',
],
'SYS' => [
    'reverseProxyHeaderMultiValue' => 'last',
    'reverseProxyIP' => '<yourReverseProxyIp>',
    'reverseProxySSL' => '*'
]
于 2021-04-07T05:21:17.410 回答
0

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

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

于 2021-03-16T23:15:49.107 回答