Topic-icon Blank page when authorizing Twitter

Active Subscriptions:

None
5 years 7 months ago #64585 by Kalixo
Dear Support,
I tried to authorize my account with Twitter, but when I try to log on my webpage via Twitter login button, I am forwarded to a blank page:
rtvwpromocji.pl/index.php?option=com_jfb...409f50bae04a00e60b=1

my Twitter app is configured and enabled.

What I am doing wrong?
Thank you,
Kalixo
The topic has been locked.
Support Specialist
5 years 7 months ago #64588 by alzander
In the Joomla Global Configuration area, set Error Reporting to 'Development'. Then, login with Twitter again. That white page should show an error message as to why the page can't be rendered. Let us know the error message and we'll gladly help get you sorted out!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 7 months ago #64599 by Kalixo
hello Alex,
thank you for helping me with this problem.
Below please find errors after enabling error reporting in the development mode:

Notice: Trying to get property of non-object in /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/libraries/joomla/oauth1/client.php on line 190

Notice: Undefined index: oauth_callback_confirmed in /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/libraries/joomla/oauth1/client.php on line 192

Warning: Parameter 1 to Sh404sefClassRouterInternal::sh404sefErrorPage() expected to be a reference, value given in Unknown on line 0

Fatal error: Uncaught DomainException: Bad request token! in /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/libraries/joomla/oauth1/client.php:194 Stack trace: #0 /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/libraries/joomla/oauth1/client.php(124): JFBCOAuth1Client->_generateRequestToken() #1 /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/controllers/authenticate.php(34): JFBCOAuth1Client->authenticate() #2 /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/libraries/src/MVC/Controller/BaseController.php(710): JFBConnectControllerAuthenticate->login() #3 /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/jfbconnect.php(28): Joomla\CMS\MVC\Controller\BaseController->execute('login') #4 /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/libraries/src/Component/ComponentHelper.php(382): require_once('/var/www/vhosts...') #5 /var/www in /var/www/vhosts/45/176060/webspace/siteapps/joomla-62869/htdocs/components/com_jfbconnect/libraries/joomla/oauth1/client.php on line 194

Thank you,
Kalixo
The topic has been locked.
Support Specialist
5 years 7 months ago #64602 by alzander
Thanks for providing the error message. The 'Bad request token!' message is caused by either of the following issues:
1) Your Twitter Application's Callback URL is incorrect. Please double check our Twitter Setup Guide and make sure the callback URL in step 4 is setup properly. For reference though, your callback URL should end in index.php and not have any ? or additional query parameters.
2) The time on your server is incorrect. Double-check that the time on your server is accurate. Each time you authenticate with Twitter, the request includes the current time. If Twitter things the request is too old (more than a couple of minutes) or from the future, it will reject the request.

I hope that helps, but if you need anything further on this, please let us know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 7 months ago #64608 by Kalixo
Dear Alex,
you a genius ;)
In fact, there was a missing "index.php" at my website URL callback, as it was adwised here: "Callback URL - Your full website URL with 'index.php'".

problem solved.
Thank you!
Best,
Kalixo
The topic has been locked.
Support Specialist
5 years 6 months ago #64628 by alzander
Glad to hear we could help get you going with this! If you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.