Foysal Vai
Foysal Vai

Reputation: 1363

Zend Framework 2 authentication using Facebook

I am using SocalNick/ScnSocialAuth (https://github.com/SocalNick/ScnSocialAuth) library with Zend Framework 2 for my project. While I am trying to login using Facebook I am getting folowing error message.

Fatal error: Call to a member function getState() on a non-object in D:\php\htdocs\test\vendor\socalnick\scn-social-auth\src\ScnSocialAuth\Authentication\Adapter\HybridAuth.php on line 144

I am trying hard to find out the root of this problem, but could not find any solution so far.

Can any one say what can be the solution??

Thanks

Upvotes: 0

Views: 426

Answers (1)

JI-Web
JI-Web

Reputation: 533

From what info you've provided it seems that the Entity you have defined for Authentication has a member variable 'state' but no method to get it. (i.e. getState()).

Assumptions here include that you're using ZfcUser and you're probably overwriting the entity.

'user_entity_class' => '<mymodule>\Entity\User',

Upvotes: 1

Related Questions