【问题标题】:TYPO3 v10.1.0 won't installTYPO3 v10.1.0 无法安装
【发布时间】:2020-03-27 12:04:00
【问题描述】:

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

我打开了那个文件,删除了里面的所有 cmets,然后重新加载了 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

【问题讨论】:

    标签: typo3 typo3-10.x


    【解决方案1】:

    这是一个由 Symfony 4.4 版组件更改引起的已知问题,已在当前主版本或版本 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"
    }
    

    【讨论】:

    • 由于我只是想测试一下,所以我使用了当前的主分支。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-03
    • 1970-01-01
    • 2013-06-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多