Skip to Content Skip to Menu

[SOLVED] CBConnect/ Login Error: CB login by facebook account goes to Blank page

9 years 11 months ago - 9 years 11 months ago #252824 by yusukenishihara
Hello, thank you for your support.

Recently I have received Error report for CB login using facebook/CB Connect from my users. They are saying they cannot login.

I confirmed this error happening in iPhone device by myself;

1. Click facebook login button in my cb login page when I am already log in to facebook.
2. New page open and the page is blank. blank page url is
https://[mydomain]/index.php?option=com_comprofiler&task=pluginclass&plugin=cbconnect&action=facebook&func=accesstoken&format=raw&code=AQCNZR8kGQ1n-Mq-Gqlc6qCWi6cQXWrg9KPEAtj9jb8_e8mIthN9G5hPDvJ9R52mI6u1lGMLbyVWmnk2R5BqAMJ0j5aCH-2cPpnKtFKDB83eIPN0PNGPT9xmWNQTIvrWAOBaCyKzQizS3jlB2iK0z1QlGJFVT8X99XMD7a24cl2oCYZ8sKRLqWMucGjCkh3yrhrFCxx7KeUzKop-4JqufGN8ozEzYjifBdgvbtVItp7dvq4uxEnU5-UZN_EaHsehyc6OkA8YhjhTiKfRyfpiqVgW7eoz8qYTxH8r_i0aWUlvrKOwQZtkDrsfjJGtyfuaqoMbGZiPcvhChhMavG6temsK&state=a99af8671f6aa8f3fffec7f32c65cac0#_=_


The blank page is totally blank with no message. I tried to check debug in blank page by maximum bug report, but nothing was displayed.

I also tried this in windows and mac PC, and both worked, but in android device, error occurred; Click facebook login button then blank pop-up showed and quickly closed, then nothing happened.

My main environment is below;

device: iPhone6
OS: iOS8
browser: safari
Joomla: 1.5.15
CB: 1.9.1
CB Connect: 5.2.2

Could you advise what was wrong and how to fix this?

Thank you!
Last edit: 9 years 11 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48499
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #252865 by krileon
It's bugged, you need the latest CB Connect which is for CB 2.0. Alternative is search around the forums for some quick fixes as that could be the username error. Enable debug mode and maximum error reporting then retest to expose the error.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

9 years 11 months ago - 9 years 11 months ago #252918 by yusukenishihara
Thank you for your reply.

I use joomla 1.5, so I cannot upgrade to CB 2.0 for now so now I want to use alternative way to fix this problem.

For debug there is no message shown even in maximum error report as I told, just blank.

I found the forum you mentioned, www.joomlapolis.com/forum/search?q=CB+connect+username+error&childforums=1

I fixed the "username" code, but error still exists. I actually found another thing which seems to be cause of this error;

1 Click Facebook login by iPhone device

2 Opening blank page

3 The blank page NOT CLOSE

4 If I close the page by myself, login will work after that.

I think "blank page not close by itself" issue cause this login error. Do you have any advise for this.


Thank you always for your support.


--edit--

I found more detail about this. From IOS8.x JS, "window.close()" does not work.

stackoverflow.com/questions/25804730/window-close-doesnt-work-on-ios-8-gm-seed

in

there is code using "window.close();" in cbconnect.class.php, line 1914;
Code:
$js = "window.opener.oAuthSuccess = $success;" . ( $error ? "window.opener.oAuthError = '" . addslashes( $error ). "';" : null ) . "window.close();"; echo '<script type="text/javascript">' . $js . '</script>';

Have you modify this in latest update? if so could you advise me how to fix?

Thank you!
Last edit: 9 years 11 months ago by yusukenishihara.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48499
  • Thanks: 8284
  • Karma: 1443
9 years 11 months ago #252964 by krileon
The popup method doesn't work on mobile devices. Try setting the method to redirect within CB Connect settings. The CB Connect release for CB 2.0 always uses redirect method.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

9 years 11 months ago #252989 by yusukenishihara
That is it!
The issue solved by changing to "redirect".

Thank you for your sincere advise!

Best!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum