首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TYPO3 10.1.0不会安装

TYPO3 10.1.0不会安装
EN

Stack Overflow用户
提问于 2019-12-02 20:37:02
回答 1查看 563关注 0票数 1

我只是想安装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中添加了FileSpool.php():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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-02 20:54:30

这是一个已知的问题,它是由SymfonyVersion4.4组件中的更改引起的,并且在当前的主版或10.2.0版本(定于明天12月3日发布)中得到了解决,请参阅对应贴片

您目前有四种解决此问题的方法:

  • 等待明天的新版本
  • 使用当前母版而不是10.1
  • 将修补程序应用于您的安装
  • 将下列行添加到您的composer.json

“冲突”:{ "symfony/config":“~4.4.0”、"symfony/console":“~4.4.0”、“symfony/依赖-注入”:“~4.4.0”、“symfony/表达式-语言”:“~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”}

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59146320

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档