Error on 'composer install' #560

Closed
opened 2026-02-04 21:01:07 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @wolverinexc on GitHub (Jan 30, 2018).

For Bug Reports

  • BookStack Version: v0.19.0
  • PHP Version: PHP 5.6.33 (FPM+opcache)
  • MySQL Version: 5.6.38
  • OS: CentOS 7.4
Expected Behavior

Application is installed

Current Behavior

Error after running git clone then composer install

maximebf/debugbar suggests installing kriswallsmith/assetic (The best way to manage assets)
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
barryvdh/reflection-docblock suggests installing dflydev/markdown (~1.0)
barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3))
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
PHP Parse error:  syntax error, unexpected '?' in /var/www/$DOMAIN/BookStack/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233

Parse error: syntax error, unexpected '?' in /var/www/$DOMAIN/BookStack/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233
Steps to Reproduce

Follow manual instructions at https://www.bookstackapp.com/docs/admin/installation/#manual

Errs after running 'composer install'

Originally created by @wolverinexc on GitHub (Jan 30, 2018). ### For Bug Reports * BookStack Version: v0.19.0 * PHP Version: PHP 5.6.33 (FPM+opcache) * MySQL Version: 5.6.38 * OS: CentOS 7.4 ##### Expected Behavior Application is installed ##### Current Behavior Error after running git clone then `composer install` ``` maximebf/debugbar suggests installing kriswallsmith/assetic (The best way to manage assets) symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM) barryvdh/reflection-docblock suggests installing dflydev/markdown (~1.0) barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3)) filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses) sebastian/global-state suggests installing ext-uopz (*) phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5) phpunit/phpunit suggests installing ext-xdebug (*) phpunit/phpunit suggests installing phpunit/php-invoker (^1.1) Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump PHP Parse error: syntax error, unexpected '?' in /var/www/$DOMAIN/BookStack/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233 Parse error: syntax error, unexpected '?' in /var/www/$DOMAIN/BookStack/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233 ``` ##### Steps to Reproduce Follow manual instructions at https://www.bookstackapp.com/docs/admin/installation/#manual Errs after running 'composer install'
Author
Owner

@Tek42 commented on GitHub (Feb 8, 2018):

This got closed. Was there a fix for this error? I just tried to upgrade my install and im getting this same error.

@Tek42 commented on GitHub (Feb 8, 2018): This got closed. Was there a fix for this error? I just tried to upgrade my install and im getting this same error.
Author
Owner

@wolverinexc commented on GitHub (Feb 8, 2018):

upgrading to php 7.1 fixed the error for me

On Thu, Feb 8, 2018 at 8:13 AM, Mike M notifications@github.com wrote:

This got closed. Was there a fix for this error? I just tried to upgrade
my install and im getting this same error.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/685#issuecomment-364107698,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIuwwpkiomQofvq6i7aQIncvxwMfV1ijks5tSvMWgaJpZM4Rxc0S
.

@wolverinexc commented on GitHub (Feb 8, 2018): upgrading to php 7.1 fixed the error for me On Thu, Feb 8, 2018 at 8:13 AM, Mike M <notifications@github.com> wrote: > This got closed. Was there a fix for this error? I just tried to upgrade > my install and im getting this same error. > > — > You are receiving this because you modified the open/close state. > Reply to this email directly, view it on GitHub > <https://github.com/BookStackApp/BookStack/issues/685#issuecomment-364107698>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AIuwwpkiomQofvq6i7aQIncvxwMfV1ijks5tSvMWgaJpZM4Rxc0S> > . >
Author
Owner

@Tek42 commented on GitHub (Feb 8, 2018):

Hey thanks for replying. After rereading the docs, I saw that the new version required PHP 7.

@Tek42 commented on GitHub (Feb 8, 2018): Hey thanks for replying. After rereading the docs, I saw that the new version required PHP 7.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#560