Getting an Error - ErrorException: Use of undefined constant T_DOUBLE_COLON

Hi, a working self hosted server started giving me the following error, which I am struggling with;

[2017-05-16 14:54:16] production.ERROR: ErrorException: Use of undefined constant T_DOUBLE_COLON - assumed ‘T_DOUBLE_COLON’ in /config/www/ninja/vendor/nikic/php-parser/lib/PhpParser/Lexer.php:255

Any help would be much appreciated.

Thanks in advance.

Stack trace: #0 /config/www/ninja/vendor/nikic/php-parser/lib/PhpParser/Lexer.php(255): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, ‘Use of undefine…’, ‘/config/www/nin…’, 255, Array) #1 /config/www/ninja/vendor/nikic/php-parser/lib/PhpParser/Lexer.php(32): PhpParser\Lexer->createTokenMap() #2 /config/www/ninja/vendor/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php(27): PhpParser\Lexer->__construct(Array) #3 /config/www/ninja/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php(22): PhpParser\Lexer\Emulative->__construct() #4 /config/www/ninja/vendor/classpreloader/classpreloader/src/Factory.php(61): PhpParser\ParserFactory->create(1) #5 /config/www/ninja/vendor/classpreloader/classpreloader/src/Factory.php(44): ClassPreloader\Factory->getParser() #6 /config/www/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Console/OptimizeCommand.php(77): ClassPreloader\Factory->create(Array) #7 /config/www/ninja/vendor/laravel/framework/src/Illuminate/Foundation/Console/OptimizeCommand.php(64): Illuminate\Foundation\Console\OptimizeCommand->compileClasses() #8 [internal function]: Illuminate\Foundation\Console\OptimizeCommand->fire() #9 /config/www/ninja/bootstrap/cache/compiled.php(1257): call_user_func_array(Array, Array) #10 /config/www/ninja/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): Illuminate\Container\Container->call(Array) #11 /config/www/ninja/vendor/symfony/console/Command/Command.php(256): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput)) #12 /config/www/ninja/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput)) #13 /config/www/ninja/vendor/symfony/console/Application.php(794): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput)) #14 /config/www/ninja/vendor/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Foundation\Console\OptimizeCommand),

Did anything change?

Maybe this will help:

https://laravel.io/index.php/forum/04-21-2014-fixed-composer-create-project-error-undefined-constant-t-double-colon

Thanks for the response.

Thats very odd, as things have been working and I am using a generic nginx docker based on alpine 3.5

The weird thing is that this package is in edge on alpine and not 3.5, 3.4 or 3.3, so not sure how it was all working before!

And indeed how you have it working on your alpine docker??

Which I cannot get to work due to an fpm failing to start error.

[18-May-2017 10:54:01] ERROR: failed to create new listening socket: socket(): Address family not supported by protocol (97)
18-May-2017 10:54:01] ERROR: FPM initialization failed

Apologies for mixing issues. I can create a new thread if required.

From some quick googling maybe “Address family not supported by protocol (97)” is an ipv6 issue?