eZ Platform Discussions

HWIOAuthBundle and Platform v.2.1


#1

Trying to use HWIOAuthBundle with eZ Platform v.2.1 and get this error message:

Symfony\Component\Debug\Exception\FatalThrowableError:
Type error: trim() expects parameter 1 to be string, integer given

at vendor/nyholm/psr7/src/MessageTrait.php:215
at trim(239, ’ ')
(vendor/nyholm/psr7/src/MessageTrait.php:215)
at Nyholm\Psr7\Request->Nyholm\Psr7{closure}(239)
at array_map(object(Closure), array(239))
(vendor/nyholm/psr7/src/MessageTrait.php:216)
at Nyholm\Psr7\Request->trimHeaderValues(array(239))
(vendor/nyholm/psr7/src/MessageTrait.php:186)
at Nyholm\Psr7\Request->setHeaders(array(‘Content-Type’ => ‘application/x-www-form-urlencoded’, ‘User-Agent’ => ‘HWIOAuthBundle (https://github.com/hwi/HWIOAuthBundle)’, ‘Content-Length’ => 239))
(vendor/nyholm/psr7/src/Request.php:50)
at Nyholm\Psr7\Request->__construct(‘POST’, object(Uri), array(‘Content-Type’ => ‘application/x-www-form-urlencoded’, ‘User-Agent’ => ‘HWIOAuthBundle (https://github.com/hwi/HWIOAuthBundle)’, ‘Content-Length’ => 239), ‘code=SENSORED BY AUTHOR&grant_type=authorization_code&client_id=SENSORED BY AUTHOR&client_secret=SENSORED BY AUTHOR&redirect_uri=SENSORED BY AUTHOR%2Flogin%2Fcheck-feide’, ‘1.1’)

Don’t know how to get around this. Any help appreciated.