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

Missing class #17

Open
tallypokemap opened this issue Jul 21, 2017 · 5 comments
Open

Missing class #17

tallypokemap opened this issue Jul 21, 2017 · 5 comments

Comments

@tallypokemap
Copy link

I get this error when trying to run this.

PHP Fatal error: Uncaught Error: Class 'Discord\OAuth\Discord' not found in /var/www/html/index.php:5
Stack trace:
#0 {main}
thrown in /var/www/html/index.php on line 5

@Hackmastr
Copy link

Did You install it correctly? (vendor folder existence)

Did You load the Composer autoloader?

include __DIR__.'/vendor/autoload.php'

@tallypokemap
Copy link
Author

I cloned the git and ran composer. What about vendor folder existence?

@Hackmastr
Copy link

Does it exist...?
If yes check if there is a subfolder with the library inside

@tallypokemap
Copy link
Author

tallypokemap commented Jul 21, 2017

It was the autoloader. I added require "vendor/autoload.php"; to the php code.
Thanks for the help.

@tgraupmann
Copy link

tgraupmann commented Sep 30, 2017

Where can I find the class AbstractProvider? It seems to provide the getAuthorizationUrl() method.

Found it
https://github.com/thephpleague/oauth2-client/blob/64c6acd2730a4d698b9dae6de518196b0774719a/src/Provider/AbstractProvider.php

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

3 participants