我有一个基于Silverstripe 3.5.6构建的网站,由于它具有php 7.0,因此我需要将其更新为3.6.6。
文档非常扭曲,我一无所知。基本上,我尝试打开composer.json并将framework,cms版本从3.5.6更改为3.6.6,然后通过终端启动“ composer update”命令,我想这会加载相应的版本,但是我明白了错误返回:
- Installation request for silverstripe/framework 3.6.6@stable -> satisfiable by silverstripe/framework[3.6.6].
- silverstripe/framework 3.6.6 requires php >= 5.3.3, <7.2 -> your PHP version (7.2.11) does not satisfy that requirement.
Problem 2
- Installation request for silverstripe/reports 3.6.6@stable ->
satisfiable by silverstripe/reports[3.6.6].
- silverstripe/reports 3.6.6 requires php >=5.3.3,<7.2 -> your PHP
version (7.2.11) does not satisfy that requirement.
Problem 3
- silverstripe/framework 3.6.6 requires php >= 5.3.3, <7.2 -> your PHP
version (7.2.11) does not satisfy that requirement.
- silverstripe/display-logic 1.5.0 requires silverstripe/framework
^3.1
-> satisfiable by silverstripe/framework[3.6.6].
- Installation request for silverstripe/display-logic 1.5.0 -> satisfiable by silverstripe/display-logic[1.5.0].
答案 0 :(得分:3)
从您发布的日志中:
silvertripe / framework 3.6.6需要php> = 5.3.3,<7.2->您的PHP 版本(7.2.11)不满足该要求。
Silverstripe 3.x(3.7.0之前的版本)仅支持PHP 7版本before 7.2。如果要使用PHP 7.2,则需要升级到SilverStripe 3.7+或Silverstripe 4.x。