2017-12-15 619 views
0

VPS, 램프 기술, SS 4.01에 설치하려고하는데 오류가 있습니다. 3x 웹 사이트가 이미 3.x SS에서 작동하고 있습니다. 지금 당신은 치명적인 오류가 발생하는 경우실버 스트라이프를 설치할 수 없습니다. 4

(이 약 30 초 소요) 설치 단계를 실행하고 SilverStripe ... 설치

설치

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() 

답변

2
을 계속하려면이 페이지를 새로 고침

이 오류는 SilverStripe 웹 사이트에서 사용한 패키지 설치 프로그램이 PHP 7 용으로 작성되었으며 PHP 7과 호환되지만 PHP 5는 사용할 수없는 종속성을 포함하고 있기 때문에 발생합니다.

현재 GitHub의에서이 문제를 추적 할 수 있습니다 https://github.com/silverstripe/silverstripe-framework/issues/7709

프로젝트에서 vendor 폴더를 제거, 그것을 수정하고 composer update을 사용하여 다시 만들려면.