typo3 - TYPO3 v10.1.0 无法安装
问题描述
我只是想安装TYPO3 10.1.0,但安装不起作用。
起初,它抛出一个 Server-500 错误,没有任何 php 错误。设置后,'displayErrors' => true
我可以看到详细的错误消息显示
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
The file "/var/www/html/typo3/public/typo3/sysext/core/Configuration//Services.yaml" does not contain valid YAML: Unexpected characters near "
我打开了那个文件,删除了里面的所有注释,然后重新加载了 install.php,解决了这个错误,但是又抛出了另一个错误,这次是在我的 php 输出中:
NOTICE: PHP message: PHP Fatal error: Class TYPO3\CMS\Core\Mail\FileSpool contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\Mailer\Transport\TransportInterface::__toString) in /var/www/html/typo3/public/typo3/sysext/core/Classes/Mail/FileSpool.php on line 38
在 FileSpool.php 中添加 __toString():string 函数后,出现另一个错误
NOTICE: PHP message: PHP Fatal error: Declaration of TYPO3\CMS\Core\Mail\Mailer::send(Symfony\Component\Mime\RawMessage $message, ?Symfony\Component\Mailer\SmtpEnvelope $envelope = NULL): void must be compatible with Symfony\Component\Mailer\MailerInterface::send(Symfony\Component\Mime\RawMessage $message, ?Symfony\Component\Mailer\Envelope $envelope = NULL): void in /var/www/html/typo3/public/typo3/sysext/core/Classes/Mail/Mailer.php on line 38
所以,基本上,core/classes/Mail
阻止我安装 TYPO3 10.1.0
解决方案
这是由于 Symfony 4.4 版组件的更改而导致的已知问题,在当前的 master 或 10.2.0 版(计划于明天 12 月 3 日发布)中已解决,请参阅相应的补丁。
您目前有四个选项来规避此问题:
- 等待明天的新版本
- 使用当前主版本而不是 10.1
- 将补丁应用于您的安装
- 将以下行添加到您的 composer.json
"conflict": { "symfony/config": "~4.4.0", "symfony/console": "~4.4.0", "symfony/dependency-injection": "~4.4.0", "symfony/expression-language": "~4.4.0", "symfony/finder": "~4.4.0", "symfony/mailer": "~4.4.0", "symfony/mime": "~4.4.0", "symfony/property-access": "~4.4.0", "symfony/property-info": "~4.4.0", "symfony/routing": "~4.4.0", "symfony/yaml": "~4.4.0" }
推荐阅读
- maven - 401 Unauthorized 从 GitHub Packages 使用 Gradle 下载公共包
- c++ - c++ - 如何在 Qt 中通过 QFileSystemModel 限制文件类型
- windows-terminal - 默认情况下如何使用多个窗格启动新的 Windows 终端?
- c++ - 使用 macOS brew install 获取“CXX 编译器:/usr/local/bin/g++-7 -- broken”
- node.js - npm install for angular 7 app 错误:从 .../.npm/_cacache/tmp 找不到模块“@angular-devkit/build-ng-packagr”
- sentry - 从 Sentry 错误日志中删除敏感信息
- javascript - Intl.DateTimeFormat() 的 `dateStyle` 和 `timeStyle` 是否使用操作系统首选项中定义的格式?
- asp.net - 加载本机库 grpc_csharp_ext.x86.dll 时出错
- android-studio - 如何在不使用 Android Studio 的情况下更改 Flutter 中的应用程序包名称?
- reactjs - TypeError:访问道具时无法读取未定义的属性“年龄”