我只是想安装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
发布于 2019-12-02 20:54:30
这是一个已知的问题,它是由SymfonyVersion4.4组件中的更改引起的,并且在当前的主版或10.2.0版本(定于明天12月3日发布)中得到了解决,请参阅对应贴片。
您目前有四种解决此问题的方法:
“冲突”:{ "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”}
https://stackoverflow.com/questions/59146320
复制相似问题