TYPO3 v10.1.0无法安装

时间:2019-12-02 20:37:02

标签: typo3 typo3-10.x

我只想安装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

1 个答案:

答案 0 :(得分:3)

这是由Symfony 4.4版组件的更改引起的已知问题,已在当前的master或版本10.2.0(计划于12月3日,明天发布)中解决,请参见corresponding patch

您当前有四种选择可以避免此问题:

  • 等待明天的新版本
  • 使用当前的主服务器而不是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"
}