Warning (2): include(/var/www/html/src/Middleware/SingleSessionMiddleware.php): failed to open stream: Permission denied [ROOT/vendor/composer/ClassLoader.php, line 444]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php line=970 [CORE/src/Http/ResponseEmitter.php, line 71]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 168]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: Class 'App\Middleware\SingleSessionMiddleware' not found

Class 'App\Middleware\SingleSessionMiddleware' not found 📋

Error
Toggle Vendor Stack Frames
        $middlewareQueue
            // Catch any exceptions in the lower layers,
            // and make an error page/response
            ->add(new ErrorHandlerMiddleware(Configure::read('Error')))
            ->add(new SingleSessionMiddleware()) //  your custom Middleware For Single Session at a time (concurrent login not allowed)
            // Handle plugin/theme assets like CakePHP normally does.
            ->add(new AssetMiddleware([
Error in: ROOT/src/Application.php, line 91

If you want to customize this error message, create templates/Error/error500.php