Closed michielbdejong closed 3 years ago
Switching to php:7.3 should work.
From what I can see, the issue might be related to require
in composer.json
for PHP being set to 7.1 but platform
being set to 7.3.
In general, I think we might be better of just removing the platform
section in the composer.json
file.
Next error:
<b>Fatal error</b>: Uncaught Error: Class 'Pdsinterop\Rdf\Formats' not found in /app/web/index.php:76
Trying with latest flysystem-rdf now.
Previous error fixed. Now running into:
console.log
<br />
<b>Deprecated</b>: Not specifying the signer and key to Builder#getToken() is deprecated. Please move the arguments from Builder#sign() to Builder#getToken(). in <b>/app/vendor/lcobucci/jwt/src/Builder.php</b> on line <b>506</b><br />
<br />
<b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in /app/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:19
Stack trace:
#0 /app/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(36): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent()
#1 /app/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
#2 /app/web/index.php(230): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\JsonResponse))
#3 {main}
thrown in <b>/app/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>19</b><br />
Ah. This seems to be a recent development: https://github.com/tymondesigns/jwt-auth/issues/2059
https://github.com/tymondesigns/jwt-auth/issues/2059#issuecomment-733622082
In the meantime for those like me who uses
lcobucci/jwt
as a dependency ofleage/league/oauth2-server
orlaravel/passport
you can explicitly require the version 3.3.3 of thelcobucci/jwt
package (until a better solution comes up) by executing:composer require lcobucci/jwt:3.3.3 && composer update
That did the trick, thanks! Master is green again now.
Here's what I did to investigate the 500 error:
Hoping it will be fixed by using
FROM php:7.3-apache
in the Dockerfile.