Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Twitter Login error


I have this error when login with twitter in our forum:

Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /(...)/foro/plugins/Twitter/class.twitter.plugin.php on line 305

The users of our forum can't login with twitter because the above error.

Have anyone any idea about how to solve the problem?

thanks in advance.



  • UnderDogUnderDog Moderator

    Show what's on line 305 of that file. There's an exotic exception that needs to be resolved

  • On line 305:

    throw new OAuthException(GetValue('error', $Result, $Result), $HttpCode, $previous);

    and form part of this code:

    if ($HttpCode == '200')
    return $Result;
    throw new OAuthException(GetValue('error', $Result, $Result), $HttpCode, $previous);

    Thanks for the interest.

  • Ran across it too. Twitter recently changed their API, could this be related to that?

  • UnderDogUnderDog Moderator

    Both of you have to debug the code a bit. Help each other

  • Would that I could, but I don't dare fiddle with live files on my almost non-existant mobile connection. I got the exact same error with a user who is verified to have logged in previously. Just wanted to verify it to be an issue for others too, and offer an input on the go, as I've seen other Twitter API related things break the past few days.

    I'll try to debug when I can, but I doubt it'll be today.

  • If you find the line that begins with: public static $BaseApiUrl = and change the URL from the v1 version of the API to you should be back in business, at least temporarily. See

  • Thanks for find the solution, my technical knowledge in PHP are limited. practically defined in copy, paste and little else.

    Thank you very much again, I owe you a beer

  • tdh AWESOME!!! Worked first shot. The old plugin really needs to be upgraded.

  • Great Job! Thank You tdh

Sign In or Register to comment.