-
Notifications
You must be signed in to change notification settings - Fork 65
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: Uncaught Error: Class 'Slim\\Middleware\\HttpBasicAuthentication' not found #61
Comments
The error message has a filename and a line number. What is the code in that line? |
First of all, thank you for your attention. Many thanks |
This is different error. In the original post the error you mentioned was:
This error message is above is.
It looks like the output is garbled or there is a copy paste mistake. The |
Yeah, you're right. Sorry for the cross error! The first one i've just solutionated :) Now reggarding to the other : On my developer machine (xampp) it's working fine, when i put it on my server (LINUX - PHP 7.1.16-1+ubuntu16.04.1+deb.sury.org ) Can you please help me? |
My bootstrap.php code is: ... // "users" => [ ]));` |
The error message has a filename and a line number. What is the code in that line? Other way to ask this is, you mention above that error message is:
What is the contents of the file |
Thank you for your sugestion. |
Im having a strange error.
On my localhost (windows10 with xampp) all my slim api is working fine, but when i put it on my server (ubuntu) i've got the error:
PHP Fatal error: Uncaught Error: Class 'Slim\Middleware\HttpBasicAuthentication' not found /var/www/html ...
Some useful notes:
My composer.php
{
"require": {
"slim/slim": "^3.9",
"tuupola/slim-basic-auth": "^3.0",
"slim/middleware": "*",
"firebase/php-jwt": "^5.0",
"tuupola/slim-jwt-auth": "^3.0",
"tuupola/base62": "^0.10.0",
"tuupola/cors-middleware": "^0.7.0"
}
}
My bootstrap.php
$app->add(new \Tuupola\Middleware\HttpBasicAuthentication([
]));
Can you please give some tips?
Thank you
The text was updated successfully, but these errors were encountered: