Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Wrong parameters for Exception #59

Open
ornj opened this issue Jun 2, 2013 · 3 comments
Open

Wrong parameters for Exception #59

ornj opened this issue Jun 2, 2013 · 3 comments

Comments

@ornj
Copy link

ornj commented Jun 2, 2013

After Twitter redirects me to the check path, I get a fatal error stating, "Wrong parameters for Exception". Here is the stack trace.

FatalErrorException: Error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /var/www/vendor/friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Authentication/Provider/TwitterProvider.php line 77

in /var/www/vendor/friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Authentication/Provider/TwitterProvider.php line 77
at ErrorHandler->handleFatal() in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 0
at Exception->__construct('', '', '', '') in /var/www/vendor/friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Authentication/Provider/TwitterProvider.php line 77
at TwitterProvider->authenticate('token' => '') in /var/www/app/cache/dev/classes.php line 4186
at AuthenticationProviderManager->authenticate('token' => '') in /var/www/vendor/friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Firewall/TwitterListener.php line 45
at TwitterListener->attemptAuthentication('request' => '') in /var/www/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php line 136
at AbstractAuthenticationListener->handle('event' => '') in /var/www/app/cache/dev/classes.php line 4063
at Firewall->onKernelRequest('event' => '') in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 451
at ??call_user_func('', '') in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 451
at TraceableEventDispatcher->Symfony\Component\HttpKernel\Debug\{closure}('event' => '') in /var/www/app/cache/dev/classes.php line 3403
at ??call_user_func('', '') in /var/www/app/cache/dev/classes.php line 3403
at EventDispatcher->doDispatch('listeners' => '', 'eventName' => '', 'event' => '') in /var/www/app/cache/dev/classes.php line 3336
at EventDispatcher->dispatch('eventName' => '', 'event' => '') in /var/www/app/cache/dev/classes.php line 3500
at ContainerAwareEventDispatcher->dispatch('eventName' => '', 'event' => '') in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 139
at TraceableEventDispatcher->dispatch('eventName' => '', 'event' => '') in /var/www/app/bootstrap.php.cache line 992
at HttpKernel->handleRaw('request' => '', 'type' => '') in /var/www/app/bootstrap.php.cache line 977
at HttpKernel->handle('request' => '', 'type' => '', 'catch' => '') in /var/www/app/bootstrap.php.cache line 1103
at ContainerAwareHttpKernel->handle('request' => '', 'type' => '', 'catch' => '') in /var/www/app/bootstrap.php.cache line 413
at Kernel->handle('request' => '', 'type' => '', 'catch' => '') in /var/www/web/app_dev.php line 27
at ??{main}() in /var/www/web/app_dev.php line 0

This is with Symfony 2.2.2, FOSTwitterBundle dev-master.

@thoder
Copy link

thoder commented Jun 5, 2013

in /var/www/vendor/friendsofsymfony/twitter-bundle/FOS/TwitterBundle/Security/Authentication/Provider/TwitterProvider.php at line 77

change this line :
throw new AuthenticationException($failed->getMessage(), null, $failed->getCode(), $failed);

by :
throw new AuthenticationException($failed->getMessage(), $failed->getCode(), $failed);

@ornj
Copy link
Author

ornj commented Jun 5, 2013

Yeah, there is a PR for this, #56. It's a month or so old but I didn't see an issue associated with it.

@davidwiniarz
Copy link

When I did like u said, it keeps logging and relogging and so on, so on... well, it's stucked.
Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants