Warning (2): getimagesize(/home/storage/c/35/50/casabrasileirapl2/public_html/webroot/content/pages/d0131959679774ac67fdaf3c5cae9548.jpg): Failed to open stream: No such file or directory [APP/Controller/AppController.php, line 95]
Warning (512): Unable to emit headers. Headers sent in file=/home/storage/c/35/50/casabrasileirapl2/public_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 /home/storage/c/35/50/casabrasileirapl2/public_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 /home/storage/c/35/50/casabrasileirapl2/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: image_type_to_mime_type(): Argument #1 ($image_type) must be of type int, null given

image_type_to_mime_type(): Argument #1 ($image_type) must be of type int, null given 📋

TypeError
Toggle Vendor Stack Frames
                list($width$height$type$attr) = getimagesize(WWW_ROOT 'content' DS 'pages' DS $pagina->imagem);
                $pagina->imagem = [
                    'endereco' => '/content/pages/' $pagina->imagem,
                    'tipo' => image_type_to_mime_type($type),
                    'largura' => $width,
                    'altura' => $height,
                ];
Error in: ROOT/src/Controller/AppController.php, line 99

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