Topic-icon Twitter and Google - blank redirect page.

Active Subscriptions:

None
12 years 1 month ago #43202 by timecast
I have been looking around for a couple of days for issues with JFBConnect using Twitter and Google+ authentication.
From Joomla I set error logging to maximum and do not have an errors listed regarding this.

Running: Joomla 3.2.3 | JFBConnect 6.0.4 | JomSocial 3.1.1

There was another forum post about this topic back in Decemeber of 2013, but no a resolution was not provided or if it was ever resolved.

At this moment if a new user authenticates with Twitter it will take them to the user registration page, completing the first 2 parts of the JomSocial process is no problem, but when the user is redirected to the avatar page it is blank. Hitting enter on the url takes the user back to the homepage. After activating the account from the user email, and going back to login via Twitter the redirect page from Twitter to my domain renders a blank page. Again hitting enter in the url takes the user back to the home page, clicking on the social link gives an error that the session is expired.

As for Google+ pretty much the same issue. I have enabled showing PHP errors.

Any ideas on what might be causing this issue?
The topic has been locked.
Support Specialist
12 years 1 month ago #43208 by alzander
A blank white page means that there are PHP errors. If none are showing, it means that either some other extension is disabling them or your server has them forcibly disabled. In either case, that's bad news for narrowing down the cause. I'd highly recommend trying to determine what is preventing error reporting from showing because, without that, we're shooting in the dark. You can also contact your hosting company to see if they can provide the PHP error logs (not Apache logs).

Some things you can try to narrow things down in the mean time are:
* Disable any caching on your server (mainly in the Joomla -> Global Configuration area)
* Disable SEF URLs
* Disable any social profile plugins you have enabled
Then, test to see if you still have the same issue. If not, enable each of the above individually to try and narrow down where things break. That will help us provide more focused answers.

Since the problem happens in Google+ and Twitter that eliminates a lot of common issues to each of those providers and means it's something more generic. Unfortunately, without error reporting, I don't have any ideas of where to begin right now. If you can test the above and let us know where things fail, we can likely get you a good solution.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #43398 by timecast
OK I tried your suggestions - still no darn luck. I might be worth mentioning a couple of other items:
-Using CloudFlare CDN - any possibility that this could interfere with Twitter/Google?
-Template is YooTheme Capture (Warp 7 Framework)
-YooTheme ZOO for Article management (V 3.1.6)
-YooTheme WidgetKit (v1.4.7)

Also not much in error_log from the system, I set it to maximum reporting in Joomla:
[23-Apr-2014 09:19:04 UTC] PHP Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/home/SITENAMEREMOVED:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/SITENAMEREMOVED/public_html/libraries/phpass/PasswordHash.php on line 51
[23-Apr-2014 13:35:57 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php on line 869
[23-Apr-2014 13:35:57 UTC] PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php:869) in /home/SITENAMEREMOVED/public_html/libraries/joomla/session/session.php on line 658
[23-Apr-2014 13:35:57 UTC] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php:869) in /home/SITENAMEREMOVED/public_html/libraries/joomla/session/session.php on line 658
[23-Apr-2014 13:35:57 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/SITENAMEREMOVED/public_html/libraries/joomla/uri/uri.php on line 174
[23-Apr-2014 13:35:57 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php on line 869
[23-Apr-2014 13:35:57 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php on line 869
[23-Apr-2014 13:35:57 UTC] PHP Notice: Undefined index: HTTP_HOST in /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php on line 869
[23-Apr-2014 13:35:57 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/SITENAMEREMOVED/public_html/libraries/joomla/application/web.php:869) in /home/SITENAMEREMOVED/public_html/components/com_jfbconnect/libraries/provider/facebook.php on line 386
[23-Apr-2014 21:28:21 UTC] PHP Fatal error: Call to undefined method JDocumentRaw::getHeadData() in /home/SITENAMEREMOVED/public_html/templates/yoo_capture/warp/systems/joomla/layouts/head.php on line 132
[24-Apr-2014 00:01:24 UTC] PHP Fatal error: Call to undefined method JDocumentRaw::getHeadData() in /home/SITENAMEREMOVED/public_html/templates/yoo_capture/warp/systems/joomla/layouts/head.php on line 132
[24-Apr-2014 03:54:18 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/SITENAMEREMOVED/public_html/plugins/socialprofiles/jomsocial/jomsocial.php on line 266
[24-Apr-2014 18:12:12 UTC] PHP Fatal error: Call to undefined method JDocumentRaw::getHeadData() in /home/SITENAMEREMOVED/public_html/templates/yoo_capture/warp/systems/joomla/layouts/head.php on line 132

Kinda at a loss here.
The topic has been locked.
Support Specialist
12 years 1 month ago #43401 by alzander
The warnings and notices are not anything to concern yourself with. Those are things that just aren't 100% right, but not a problem.. the page would still render with those. The Fatal errors are what would cause your page to turn white. The specific error message that's almost surely causing the issue is:
PHP Fatal error:  Call to undefined method JDocumentRaw::getHeadData() in /home/SITENAMEREMOVED/public_html/templates/yoo_capture/warp/systems/joomla/layouts/head.php on line 132
The problem looks to be that your template is trying to check information that's showing in the head section of the output. However, the page being rendered is of type "raw", which means it's just returning standard text and not a full HTML page.

Unfortunately, there's not anything we can fix there since the issue isn't within JFBConnect. We can only recommend contacting your template provider to see how to fix the issue.

I hope that helps explain and points you in the right direction. If you need more help though, just let us know.

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

None
12 years 1 month ago #43435 by timecast
Ok updated to JomSocial 3.2.0.1 (that was not the issue)

If I disable "Import Avatar" for JomSocial Profile then Google and Twitter started working with no issue. When that feature is enabled I can tell that the social profile avatar is added to the /tmp folder but is redirected to the "blank white" page. The folder permission is 755 and 755 for /images/avatar

I was looking around on the forum regarding this and noticed that there was some issues with Joomla 3.2, I am running Joomla 3.2.3

Logs Below:
[25-Apr-2014 22:55:52 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/aldawg/public_html/plugins/socialprofiles/jomsocial/jomsocial.php on line 266
[25-Apr-2014 23:09:37 UTC] PHP Notice: Undefined offset: 0 in /home/aldawg/public_html/components/com_jfbconnect/libraries/profile/facebook.php on line 201
[25-Apr-2014 23:09:53 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/aldawg/public_html/plugins/socialprofiles/jomsocial/jomsocial.php on line 266
[25-Apr-2014 23:12:47 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/aldawg/public_html/components/com_jfbconnect/libraries/authentication/oauth2base.php on line 215
[25-Apr-2014 23:12:47 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/aldawg/public_html/components/com_jfbconnect/libraries/authentication/oauth2base.php on line 215
[25-Apr-2014 23:12:47 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/aldawg/public_html/components/com_jfbconnect/libraries/authentication/oauth2base.php on line 215
[25-Apr-2014 23:12:48 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /home/aldawg/public_html/components/com_jfbconnect/libraries/authentication/oauth2base.php on line 215
[25-Apr-2014 23:13:03 UTC] PHP Strict Standards: Only variables should be assigned by reference in /home/aldawg/public_html/plugins/socialprofiles/jomsocial/jomsocial.php on line 266

NOTE: The array_key_exists() warning is the result of me turning off then back on "Search Engine Friendly URLs" in Joomla.
The topic has been locked.
Support Specialist
12 years 1 month ago #43449 by alzander
None of the messages in that last log you posted has a Fatal Error, so none of those would cause a white page. Can you see if you can find a Fatal error that matches up with the white page you're seeing? That's what we'd need to see to narrow things down. The only one I've seen so far is the getHeadData one you posted above, which is being caused by your template for some reason.

I'm not sure why the avatar would be throwing the issue you mention, but once we get a little more clarity on what's happening, that will help get us going.

Again, setting Error Reporting to 'maximum' in the Global Config area of Joomla should show the error message on the blank white page itself. That will be a direct indicator of what caused that page to stop loading instead of having to weed through log files.

Thanks,
Alex
The topic has been locked.