Comments (7)
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.
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.
bump
from hybridauth.
I guess this still happens? Any similar experiences in other versions of PHP?
from hybridauth.
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.
from hybridauth.
Can be fixed by these steps.
http://monkpal.com/exception-serialization-closure-not-allowed-hybridauth-linkedin-phalcon
from hybridauth.
Related Issues (20)
- new release HOT 2
- Help improve authorization through TikTok HOT 2
- CSRF Security Issue with state in Adapter/OAuth2.php HOT 1
- HybridAuth stores previous social account login even after logging out of social account HOT 2
- Linkedin now offers OpenID HOT 1
- Twitter authorization not working HOT 2
- LightOpenID throwing errors and authenticating users with null identifier
- Please release 3.11
- Handling Invalid Client ID and Secret Exception
- Help me fix the problem with authorization through Apple.
- Question : Is google auth concerned by the end of third-party cookies ?
- Amazon Cognito support
- Magento 2 looses customer session after SSO with Apple ID
- Facebook login suddenly stopped working HOT 1
- Is hybridauth abandoned? HOT 2
- Google login return user phone ,address and gender
- 【企业微信支持】Can somebody help to add WeWorkChat Provider?
- Provider for Openstreetmap
- Feature Request - Add ID.me to PHP Library
- curl 30s timeout is too long when issue social provider.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hybridauth.