0

我试图让 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,但解析器问题仍然存在。

有人知道可能导致这种情况的原因吗?提前致谢!

4

0 回答 0