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

PHP Fatal error: Class 'Auth0\SDK\API\ApiUsers' not found in vendor/auth0/auth0-php/src/Auth0.php on line 256 #9

Closed
MarkPfennig opened this issue May 13, 2015 · 6 comments

Comments

@MarkPfennig
Copy link

PHP Fatal error: Class 'Auth0\SDK\API\ApiUsers' not found in vendor/auth0/auth0-php/src/Auth0.php on line 256

using both 1.0 branch and master.

@MarkPfennig
Copy link
Author

appears to be autoloading issue on classes in \API namespace via composer.

use Auth0\SDK\Auth0; new Auth0(); // works fine
use Auth0\SDK\API\ApiUsers; new ApiUsers; // fatal error
use Auth0\SDK\API\ApiClient; new ApiClient; // fatal error

@MarkPfennig
Copy link
Author

Could be a composer psr-4 word casing issue?

Can work around this issue temporarily by require'ing all dependent files.

Can confirm that composer autoloader works for all other vendor packages.

@glena
Copy link
Contributor

glena commented May 13, 2015

Fixed on 1.0.2

@AdelekeIO
Copy link

Pls can i get help with this issue: Fatal error: Uncaught exception 'Auth0\SDK\Exception\CoreException' with message 'Invalid domain' in C:\xampp\htdocs\00-starter-seed\vendor\auth0\auth0-php\src\Auth0.php:213 Stack trace: #0 C:\xampp\htdocs\00-starter-seed\index.php(30): Auth0\SDK\Auth0->__construct(Array) #1 {main} thrown in C:\xampp\htdocs\00-starter-seed\vendor\auth0\auth0-php\src\Auth0.php on line 213

@joshcanhelp
Copy link
Contributor

@AdelekeIO - When you initialize the Auth0 class, you need to pass in a domain, among other things. Lots of information on the README for this repo.

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants