2 months ago by thuurke76

Relates to the lesson Authentication with Slim 3

Hello,

I was following the "Authentication with Slim 3" course and was typing with the video's. This went in the beginning very well. But during the "Showing errors on the form" I got errors. I did not find the error (Notice: Undefined index: errors in D:\www\authslim3\app\Middleware\ValidationErrorsMiddleware.php on line 14) so I did replace my testfolder completely with the zip file from the course and used composer to install/fill the vendor directory. When I open the application I get the following error.

Notice: Undefined index: user in D:\www\authslim3\app\Auth\Auth.php on line 11

Fatal error: Uncaught RuntimeException: Unexpected data in output buffer. Maybe you have characters before an opening <?php tag? in D:\www\authslim3\vendor\slim\slim\Slim\App.php:585 Stack trace: #0 D:\www\authslim3\vendor\slim\slim\Slim\App.php(377): Slim\App->finalize(Object(Slim\Http\Response)) #1 D:\www\authslim3\vendor\slim\slim\Slim\App.php(295): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response)) #2 D:\www\authslim3\public\index.php(5): Slim\App->run() #3 {main} thrown in D:\www\authslim3\vendor\slim\slim\Slim\App.php on line 585

It's the same error message on another variable and file as I got during the course. Where is something missing?

Sign in or create an account to reply to this topic.