Silverstripe 核心从 3.5.6 升级到 3.6.6

Silverstripe Core upgrade from 3.5.6 to 3.6.6

我有一个基于 Silverstripe 3.5.6 构建的网站,我需要将其更新到 3.6.6,因为它有 php 7.0.

文档非常扭曲,我什么都不懂。基本上我尝试的是打开 composer.json 并更改框架,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].

来自您发布的日志:

silverstripe/framework 3.6.6 requires php >= 5.3.3, <7.2 -> your PHP version (7.2.11) does not satisfy that requirement.

Silverstripe 3.x(3.7.0之前)只支持PHP7个版本before 7.2. If you want to use PHP 7.2, you will need to upgrade to SilverStripe 3.7+ or Silverstripe 4.x.