我试图让ss升级工作(使用作曲家升级)
{
"name": "silverstripe/installer",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=7.2.3",
"silverstripe/cms": "4.0.2",
"silverstripe/framework": "4.0.2",
"silverstripe/reports": "^4.0",
"silverstripe/siteconfig": "^4.0",
"undefinedoffset/sortablegridfield": "dev-master",
"silverstripe/recipe-core": "^1.0",
"silverstripe/recipe-cms": "^1",
"symbiote/silverstripe-gridfieldextensions": "^3.1",
"unclecheese/betterbuttons": "dev-master",
"colymba/gridfield-bulk-editing-tools": "dev-master",
"jonom/focuspoint": "dev-master",
"silverstripe/blog": "^3.0",
"silverstripe/userforms": "^5.0",
"silverstripe/widgets": "^1.2",
"silverstripe/googlesitemaps": "^1.5",
"silverstripe/staticpublishqueue": "dev-master",
"silverstripe/asset-admin": "^1.0",
"cyber-duck/silverstripe-seo": "dev-master"
},
"require-dev": {
"phpunit/PHPUnit": "^7.0"
},
"config": {
"process-timeout": 600
},
"prefer-stable": true,
"minimum-stability": "dev",
"extra": {
"project-files-installed": [
".htaccess",
"index.php",
"install-frameworkmissing.html",
"install.php",
"mysite/.htaccess",
"mysite/_config.php",
"mysite/_config/mysite.yml",
"mysite/code/Page.php",
"mysite/code/PageController.php",
"web.config"
]
}
}
看起来在作曲家更新后,它还没有完全安装,没有找到一个页面,管理员无法访问。我更改了配置文件,删除了已弃用的部分,使用新的.env文件进行数据库连接,如文档中所述。但还没有成功...... 我认为这是因为致命错误,当我访问localhost / index.php或我尝试从localhost / install.php重新安装时会显示。
消息:
Fatal error: Uncaught PhpParser\Error: Syntax error, unexpected T_STRING on
line 294 in C:\xampp\htdocs\mysite\web\vendor\nikic\php-
parser\lib\PhpParser\ParserAbstract.php:293 Stack trace: #0
C:\xampp\htdocs\mysite\web\vendor\nikic\php-
parser\lib\PhpParser\Parser\Multiple.php(50): PhpParser\ParserAbstract-
>parse('Skip to content...', Object(PhpParser\ErrorHandler\Throwing))
起初有可能它是由较旧的php版本(php 5.3)引起的,我升级到了php 7.2.3,但解析器问题仍然存在。
有人知道是什么原因引起的吗?提前谢谢!