我在带有 Ubuntu 16LTS 和 Plesk 的根服务器上安装了一个新的 TYPO3 v10LTS (v4.4)。
当我登录 BE 并转到“仪表板”时,小部件新闻显示以下红色消息:
An error occurred while retrieving information for this widget. Please try again, and if the problem persists, contact your administrator.
我也收到一个日志错误:Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1573385431: RSS URL could not be fetched | RuntimeException thrown in file /var/www/httpdocs/typo3_src-10.4.4/typo3/sysext/dashboard/Classes/Widgets/RssWidget.php in line 106. Requested URL: project-url/typo3/index.php?route=%%2Fajax%%2Fdashboard%%2Fwidget%%2Fcontent&token=--AnonymizedToken--&widget=t3news
然后,当我进入页面模块时,它需要相当长的时间才能加载并且页面树项丢失。有时服务器出现故障,前端无法访问并显示错误。 error_log 文件显示此错误:[Sun Oct 24 20:00:06.87213 2021] [evasive20:error] [pid 13801] [client ip:53534] client denied by server configuration: /var/www/httpdocs/project/typo3/index.php, referer: project-url/typo3/index.php?route=%2Fmain&token=d5da26e3df928sdffa36e0df6597c71
我有一些以前的许可问题,我认为我已经解决了:我为文件夹/project 和递归设置了以下权限:
Permission: User: Group:
rwx rwx r-x www-data psacln
我跑了:$ sudo find . -type f -exec chmod 664 {} \;
$ sudo find . -type d -exec chmod 2775 {} \;
$ user:/var/www/httpdocs/project$ ls -la
drwxrwsr-x 6 www-data psacln 4096 Jun 8 2020 fileadmin
-rw-rw-r-- 1 www-data psacln 13793 Okt 21 19:54 .htaccess
lrwxrwxrwx 1 www-data psacln 19 Jun 8 2020 index.php -> typo3_src/index.php
lrwxrwxrwx 1 www-data psacln 15 Jun 8 2020 typo3 -> typo3_src/typo3
drwxrwsr-x 6 www-data psacln 4096 Okt 21 19:06 typo3conf
lrwxrwxrwx 1 www-data psacln 19 Jun 9 2020 typo3_src -> ../typo3_src-10.4.4
drwxrwsr-x 4 www-data psacln 4096 Jun 8 2020 typo3temp
$ user:/var/www/httpdocs$ ls -la
drwxrwsr-x 4 www-data psacln 4096 Jun 9 2020 typo3_src-10.4.4
$ user:/var/www/httpdocs/typo3_src-10.4.4$ ls -la
-rw-rw-r-- 1 www-data psacln 11508 Jun 9 2020 composer.json
-rw-rw-r-- 1 www-data psacln 300325 Jun 9 2020 composer.lock
-rw-rw-r-- 1 www-data psacln 1013 Jun 9 2020 CONTRIBUTING.md
-rw-rw-r-- 1 www-data psacln 947 Jun 9 2020 index.php
-rw-rw-r-- 1 www-data psacln 1418 Jun 9 2020 INSTALL.md
-rw-rw-r-- 1 www-data psacln 18425 Jun 9 2020 LICENSE.txt
-rw-rw-r-- 1 www-data psacln 6730 Jun 9 2020 README.md
drwxrwsr-x 3 www-data psacln 4096 Jun 9 2020 typo3
drwxrwsr-x 15 www-data psacln 4096 Jun 9 2020 vendor
一些进一步的信息:PHP 版本是 7.3.27,我在 Apache 的 FPM 上设置了 php 执行。 php-info 显示“FPM/FastCGI”
$ user:/var/www/httpdocs$ sudo ps -o command,user,group -p $(pgrep php-fpm)
COMMAND USER GROUP
php-fpm: master process (/o root root
php-fpm: master process (/e root root
php-fpm: pool www www-data www-data
php-fpm: pool www www-data www-data
$ user:/var/www/httpdocs$ sudo ps -o command,user,group -p $(pgrep nginx)
COMMAND USER GROUP
nginx: master process /usr/ root root
nginx: worker process nginx nginx
$ user:/var/www/httpdocs$ sudo ps -o command,user,group -p $(pgrep apache)
COMMAND USER GROUP
/usr/sbin/apache2 -k start root root
/usr/sbin/apache2 -k start www-data www-data
$ user:/var/www/httpdocs$ getent group psacln
psacln:x:1003:www-data
我该如何解决这个问题?编辑:检查 curl 显示:
$ user:/var/www/httpdocs$ curl -I https://www.typo3.org/rss
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
phpinfo() 显示cURL Information 7.47.0
最佳答案
根据您的异常代码,在获取 https://www.typo3.org/rss 期间发生错误对于仪表板扩展中的新闻小部件。
这与您的权限问题无关。
我认为可能的原因有以下三个:
curl -I https://www.typo3.org/rss
进行检查。这应该会导致 HTTP/2 302
. 关于php - TYPO3 v10LTS - 错误 - 核心 : Exception handler (WEB): Uncaught TYPO3 Exception: #1573385431: RSS URL could not be fetched | RuntimeException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69699970/