首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我无法安装silverstripe 4

我无法安装silverstripe 4
EN

Stack Overflow用户
提问于 2017-12-15 11:01:41
回答 1查看 332关注 0票数 0

我试图安装在我的VPS,LAMP技术,SS 4.01,但我有一个错误。我已经有3个网站在3.x的SS是工作。

正在安装SilverStripe...我现在正在运行安装步骤(这应该需要大约30秒)

如果收到致命错误,请刷新此页面以继续安装

代码语言:javascript
复制
Setting up /home/devsquala/public_html/index.php
Setting up /home/devsquala/public_html/mysite/_config.php
Setting up /home/devsquala/public_html/mysite/_config/theme.yml
Setting up /home/devsquala/public_html/.env
Setting up /home/devsquala/public_html/.htaccess
Building database schema...

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/devsquala/public_html/vendor/symfony/filesystem/Filesystem.php on line 727
ERROR [Warning]: syntax error, unexpected ':', expecting ';' or '{' IN POST /~devsquala/install.php Line 727 in /home/devsquala/public_html/vendor/symfony/filesystem/Filesystem.php Source ====== 718: if (!is_writable($dir)) { 719: throw new IOException(sprintf('Unable to write to the "%s" directory.', $dir), 0, null, $dir); 720: } 721: 722: if (false === @file_put_contents($filename, $content, FILE_APPEND)) { 723: throw new IOException(sprintf('Failed to write file "%s".', $filename), 0, null, $filename); 724: } 725: } 726: * 727: private function toIterable($files): iterable 728: { 729: return is_array($files) || $files instanceof \Traversable ? $files : array($files); 730: } 731: 732: /** 733: * Gets a 2-tuple of scheme (may be null) and hierarchical part of a filename (e.g. file:///tmp -> array(file, tmp)). Trace ===== SilverStripe\Dev\CliDebugView->renderTrace() DetailedErrorFormatter.php:117 SilverStripe\Logging\DetailedErrorFormatter->output(4, syntax error, unexpected ':', expecting ';' or '{', /home/devsquala/public_html/vendor/symfony/filesystem/Filesystem.php, 727, ) DetailedErrorFormatter.php:53 SilverStripe\Logging\DetailedErrorFormatter->format(Array) AbstractProcessingHandler.php:35 Monolog\Handler\AbstractProcessingHandler->handle(Array) Logger.php:337 Monolog\Logger->addRecord(550, Fatal Error (E_PARSE): syntax error, unexpected ':', expecting ';' or '{', Array) Logger.php:518 Monolog\Logger->log(alert, Fatal Error (E_PARSE): syntax error, unexpected ':', expecting ';' or '{', Array) ErrorHandler.php:181 Monolog\ErrorHandler->handleFatalError()
EN

回答 1

Stack Overflow用户

发布于 2017-12-19 07:25:07

出现此错误的原因是,您从SilverStripe网站使用的打包安装程序是为PHP7构建的,并且包含与PHP7兼容但不兼容PHP5(您正在使用的)的依赖项。

你可以在GitHub上追踪这个问题:https://github.com/silverstripe/silverstripe-framework/issues/7709

要修复它,请删除项目中的vendor文件夹,然后使用composer update重新创建它。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47825209

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档