Code Monkey home page Code Monkey logo

Comments (7)

jeffreytgilbert avatar jeffreytgilbert commented on May 18, 2024

I had that error at some point too. If you're trying to serialize the
entire HybridAuth class, that will cause errors. It's better to snag the
credentials out of the sessions and store/restore that way.

Jeffrey Gilbert
http://www.linkedin.com/in/jeffreygilbert

On Wed, Mar 13, 2013 at 9:22 AM, ADmad [email protected] wrote:

In 5.3 thishttps://github.com/hybridauth/hybridauth/blob/v2.0.10/hybridauth/Hybrid/Error.php#L26particular statement causes an error Serialization
of 'Closure' is not allowed in Storage class when trying to serialize the
previous exception instance.

I got it when using OpenID provider for google and on the google page
selecting "No thanks" instead of allowing access.


Reply to this email directly or view it on GitHubhttps://github.com//issues/105
.

from hybridauth.

Yurko-Fedoriv avatar Yurko-Fedoriv commented on May 18, 2024

Same here. This happens if you have some closure in call stack which ends up in trace and causes error.
The solution may be converting exception to string before storing:
Hybrid_Auth::storage()->set( "hauth_session.error.previous", (string) $previous );

from hybridauth.

ADmad avatar ADmad commented on May 18, 2024

bump

from hybridauth.

StorytellerCZ avatar StorytellerCZ commented on May 18, 2024

I guess this still happens? Any similar experiences in other versions of PHP?

from hybridauth.

Yurko-Fedoriv avatar Yurko-Fedoriv commented on May 18, 2024

Due to the nature of the bug, it should not depend on php version (except for <5.3 which does not have closures. But usage of such outdated php would be problem itself :))

from hybridauth.

StorytellerCZ avatar StorytellerCZ commented on May 18, 2024

#267

from hybridauth.

karthikeyan-manivasagam avatar karthikeyan-manivasagam commented on May 18, 2024

Can be fixed by these steps.

http://monkpal.com/exception-serialization-closure-not-allowed-hybridauth-linkedin-phalcon

from hybridauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.