Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load the requested class: Hybridauth #1

Closed
xaiborweb opened this issue Jun 26, 2017 · 10 comments
Closed

Unable to load the requested class: Hybridauth #1

xaiborweb opened this issue Jun 26, 2017 · 10 comments

Comments

@xaiborweb
Copy link

http://<yourdomain.com>/index.php/hauth
Unable to load the requested class: Hybridauth

@ApacheEx
Copy link
Owner

Hm, have you moved all files from repo to application?

  • application/controllers
  • application/libraries
  • application/views
  • application/config

One more question, how did you install HA library?

And the last question, which version of CodeIgniter you have installed?

@xaiborweb
Copy link
Author

CodeIgniter 3.1.5
hybridauth v2.9.5 https://codeload.github.com/hybridauth/hybridauth/zip/v2.9.5
Cope the hybridauth folder and paste it into third_party
Replace the files here:
Application / controllers
Application / libraries
Application / views
Application / config
Copy id and secret key from facebook google and twtter
Then I opened this url http: // <yourdomain.com> /index.php/hauth
And gave me the error Unable to load the requested class: Hybridauth

@ApacheEx
Copy link
Owner

ApacheEx commented Jun 26, 2017

can you create a test repo?, because it's quite strange.
I need to check if it reproduces.

btw, what exactly you've changed in application/config folder?
did you change name of files ?

@xaiborweb
Copy link
Author

@ApacheEx
in application/third_party/hybridauth/config.php
Because I can replace the "base_url" => "http://localhost/hybridauth-git/hybridauth/",

@xaiborweb
Copy link
Author

tvglu.net /hauth/endpoint?hauth_done=Facebook
Proof

@ApacheEx
Copy link
Owner

You don't need to touch the folder applicstion/hybridauth at all,
Because you can change what you want in application/config/hybridauth.php

You have to run composer install in application/third_party/hybridauth, then Facebook will work

You don't need to specify base_url, it will be done automatically

@ApacheEx
Copy link
Owner

If you can pls create a test repository, it would be very helpful.

@ApacheEx
Copy link
Owner

I'm going to close this as there's been no activity and I was not able to reproduce.

@anibabbar
Copy link

anibabbar commented Oct 23, 2018

Same problem, Could not load the Hybrid_Auth class. !!
https://thinknhost.com/espirit/index.php/hauth

@mohan-chinnasamy
Copy link

mohan-chinnasamy commented Mar 28, 2019

In libraries change the class like below
require APPPATH.'/third_party/hybridauth/Hybrid/Auth.php';
class Hybridauth extends Hybrid_Auth {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants