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: Uncaught TypeError: Return value of Tuupola\\Middleware\\HttpBasicAuthentication::authenticator() #60

Closed
rodrigobrando opened this issue Apr 17, 2018 · 3 comments

Comments

@rodrigobrando
Copy link

rodrigobrando commented Apr 17, 2018

Hello friends!
Am I facing an unprecedented error, can you help me?

PHP Fatal error: Uncaught TypeError: Return value of Tuupola\\Middleware\\HttpBasicAuthentication::authenticator() must be an instance of Tuupola\\Middleware\\void, none returned in /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php:228\nStack trace:\n#0 [internal function]: Tuupola\\Middleware\\HttpBasicAuthentication->authenticator(Object(Tuupola\\Middleware\\HttpBasicAuthentication\\PdoAuthenticator))\n#1 /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php(171): call_user_func(Array, Object(Tuupola\\Middleware\\HttpBasicAuthentication\\PdoAuthenticator))\n#2 /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php(55): uupola\\Middleware\\HttpBasicAuthentication->hydrate(Array)\n#3 /var/www/dashboard.mobi/plataforma/api/src/middleware.php(19): Tuupola\\Middleware\\HttpBasicAuthentication->__construct(Array)\n#4 /var/www/dashboard.mobi/plataforma/api/public/index.php(30): require('/var/www/dashbo...') in /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php on line 228

@rodrigobrando
Copy link
Author

Guys, I apologize for opening this Issue. The error was due to the PHP version of the server.
I've been hitting it for 30 hours!

@tuupola
Copy link
Owner

tuupola commented Apr 18, 2018

Did composer install library version which was not compatible with server PHP version? If yes then I might have problem with my composer.json file.

@rodrigobrando
Copy link
Author

Not the error was human, he hears a php downgrade after installation.

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

2 participants