Module

Developer
Supported

Social Sign On

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

Uncaught Exception?

Support Request

ethan021
ethan021

So everytime I click on a Facebook or Twitter login button it opens the login window for the social networks but gets an Uncaught Exception..

Fatal error: Uncaught exception ‘Exception’ with message ‘The provider ‘Facebook’ is not enabled.’ in /Applications/AMPPS/www/testing/themes/third_party/social_sign_on/hybridauth/Hybrid/Provider_Adapter.php:66 Stack trace: #0 /Applications/AMPPS/www/testing/themes/third_party/social_sign_on/hybridauth/Hybrid/Auth.php(280): Hybrid_Provider_Adapter->factory(‘facebook’, Array) #1 /Applications/AMPPS/www/testing/themes/third_party/social_sign_on/hybridauth/Hybrid/Auth.php(224): Hybrid_Auth::setup(‘facebook’, Array) #2 /Applications/AMPPS/www/testing/panel/expressionengine/third_party/social_sign_on/mod.social_sign_on.php(276): Hybrid_Auth::authenticate(‘facebook’, Array) #3 /Applications/AMPPS/www/testing/panel/expressionengine/libraries/Template.php(1620): Social_sign_on->html() #4 /Applications/AMPPS/www/testing/panel/expressionengine/libraries/Template.php(1231): EE_Template->process_tags() #5 /Applications/AMPPS/www/testing/panel/expressionengine/libraries/Template.php(508): EE_Template->tags() #6 /Applications/AMPPS/www/ in /Applications/AMPPS/www/testing/themes/third_party/social_sign_on/hybridauth/Hybrid/Provider_Adapter.php on line 66


Any Ideas?

Laisvunas
# 1
Developer
Laisvunas

Hi,

Please, describe the steps how to replicate the issue.

ethan021
# 2
ethan021
Laisvunas - 30 September 2014 08:56 AM

Hi,

Please, describe the steps how to replicate the issue.

Hi,

Sorry for the slow reply.

So basically I installed the module and set everything up to a twitter and facebook app but when I try one of the templates to test to see if the sign on works all I get is that error when clicking a social network to try to sign into.

Thanks

Ethan

ethan021
# 3
ethan021

Laisvunas,

It seems like your page for testing out this authentication plugin has the same error as well.

Tried it on two different browsers and two different computers.

But even on your own testing page it has this error.

Fatal error: Uncaught exception ‘Exception’ with message ‘User profile request failed! Twitter returned an error. ’ in /home/classics/public_html/classicsunlocked.com/themes/third_party/social_sign_on/hybridauth/Hybrid/Providers/Twitter.php:38 Stack trace: #0 /home/classics/public_html/classicsunlocked.com/themes/third_party/social_sign_on/hybridauth/Hybrid/Provider_Adapter.php(192): Hybrid_Providers_Twitter->getUserProfile() #1 /home/classics/public_html/classicsunlocked.com/eesys/expressionengine/third_party/social_sign_on/mod.social_sign_on.php(412): Hybrid_Provider_Adapter->__call(‘getUserProfile’, Array) #2 /home/classics/public_html/classicsunlocked.com/eesys/expressionengine/third_party/social_sign_on/mod.social_sign_on.php(412): Hybrid_Provider_Adapter->getUserProfile() #3 /home/classics/public_html/classicsunlocked.com/eesys/expressionengine/libraries/Template.php(1287): Social_sign_on->userdata() #4 /home/classics/public_html/classicsunlocked.com/eesys/expressionengine/libraries/Template.php(876): EE_Template->p in/home/classics/public_html/classicsunlocked.com/themes/third_party/social_sign_on/hybridauth/Hybrid/Providers/Twitter.php on line 38

Laisvunas
# 4
Developer
Laisvunas

Hi,

In the version 2.2.4 I updated the library used to connect to the authentification services. This may solve the issue you encounter.

ethan021
# 5
ethan021
Laisvunas - 22 October 2014 09:18 AM

Hi,

In the version 2.2.4 I updated the library used to connect to the authentification services. This may solve the issue you encounter.

Laisvunas,

I tried installing the module in my EE build but I am now getting this error when I try to do so:

A Database Error Occurred
Error Number
1364

Field 
'settings' doesn't have a default value

INSERT INTO `exp_extensions` (`class`, `method`, `hook`, `priority`, `version`, `enabled`) VALUES ('
Social_sign_on_ext', 'sessions_start', 'sessions_start', 1, '2.2.4', 'y')

Filename: third_party/social_sign_on/ext.social_sign_on.php

Line Number: 63

« Back 

Also thanks for the speedy update!

Laisvunas
# 6
Developer
Laisvunas

Your MySQL is most likely in STRICT mode. Try running SET GLOBAL sql_mode=’’ or edit your my.cnf to make sure you aren’t setting STRICT_ALL_TABLES or the like.

ethan021
# 7
ethan021
Laisvunas - 23 October 2014 11:08 AM

Your MySQL is most likely in STRICT mode. Try running SET GLOBAL sql_mode=’’ or edit your my.cnf to make sure you aren’t setting STRICT_ALL_TABLES or the like.

Laisvunas,

Thanks again for the help.

I’m now getting these errors when trying to login to twitter (which i’ve hooked up)

When the popup window opens from one of the given templates:

A PHP Error was encountered

Severity
Warning

Message
Illegal string offset 'provider'

Filenamesocial_sign_on/mod.social_sign_on.php

Line Number
346

A PHP Error was encountered

Severity
Warning

Message
Illegal string offset 'src'

Filenamesocial_sign_on/mod.social_sign_on.php

Line Number
347

A PHP Error was encountered

Severity
Warning

Message
Illegal string offset 'title'

Filenamesocial_sign_on/mod.social_sign_on.php

Line Number
348

A PHP Error was encountered

Severity
Warning

Message
Illegal string offset 'style'

Filenamesocial_sign_on/mod.social_sign_on.php

Line Number
349 

And when I try to click the twitter button:

( ! ) Fatal errorCannot redeclare class OAuthException in /Users/ethanthomas/Sites/produceology/ee/themes/third_party/social_sign_on/hybridauth/Hybrid/thirdparty/OAuth/OAuth.php on line 11
Call Stack
# Time Memory Function Location
1 0.0003 258304 {main}( ) ../index.php:0
2 0.0008 302120 
require_once( '/Users/ethanthomas/Sites/produceology/ee/panel/codeigniter/system/core/CodeIgniter.php' ) ../index.php:188
3 0.0729 6929576 call_user_func_array
:{/Users/ethanthomas/Sites/produceology/ee/panel/codeigniter/system/core/CodeIgniter.php:329} ( ) ../CodeIgniter.php:329
4 0.0729 6929656 EE
->index( ) ../CodeIgniter.php:329
5 0.0729 6930056 EE_Core
->generate_page( ) ../ee.php:68
6 0.0775 7827928 EE_Template
->run_template_engine( ) ../Core.php:703
7 0.0775 7828544 EE_Template
->fetch_and_parse( ) ../Template.php:159
8 0.0835 8267208 EE_Template
->parse( ) ../Template.php:211
9 0.0841 8299496 EE_Template
->tags( ) ../Template.php:508
10 0.0854 8311832 EE_Template
->process_tags( ) ../Template.php:1231
11 0.0921 8687664 Social_sign_on
->html( ) ../Template.php:1620
12 0.0952 9082936 Hybrid_Auth
::authenticate( ) ../mod.social_sign_on.php:276
13 0.0952 9083080 Hybrid_Auth
::setup( ) ../Auth.php:217
14 0.0952 9084024 Hybrid_Provider_Adapter
->factory( ) ../Auth.php:272
15 0.0958 9158904 Hybrid_Provider_Model
->__construct( ) ../Provider_Adapter.php:100
16 0.0958 9159760 Hybrid_Providers_Twitter
->initialize( ) ../Provider_Model.php:90
17 0.0958 9160096 Hybrid_Provider_Model_OAuth1
->initialize( ) ../Twitter.php:18 
Laisvunas
# 8
Developer
Laisvunas

Hi,

Post here the code of the template which outputs these errors.