0

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

Foysal Vai
  • 1,365
  • 3
  • 13
  • 19

1 Answers1

1

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',
dimo414
  • 47,227
  • 18
  • 148
  • 244
JI-Web
  • 481
  • 6
  • 27