Notice: file_put_contents() [function.file-put-contents]: Write of 3567 bytes failed with errno=28 No space left on device in /var/www/Web/core/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8) : SplFileObject::fwrite(): Write of 2365 bytes failed with errno=28 No space left on device [in /var/www/Web/core/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 140]

Notice: file_put_contents() [function.file-put-contents]: Write of 3637 bytes failed with errno=28 No space left on device in /var/www/Web/core/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8) : SplFileObject::fwrite() [<a href='https://secure.php.net/splfileobject.fwrite'>splfileobject.fwrite</a>]: Write of 3153 bytes failed with errno=28 No space left on device [in /var/www/Web/core/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 140]

Notice: file_put_contents() [function.file-put-contents]: Write of 3637 bytes failed with errno=28 No space left on device in /var/www/Web/core/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Notice (8) : SplFileObject::fwrite() [<a href='https://secure.php.net/splfileobject.fwrite'>splfileobject.fwrite</a>]: Write of 2802 bytes failed with errno=28 No space left on device [in /var/www/Web/core/vendor/cakephp/cakephp/src/Cache/Engine/FileEngine.php, line 140]

Notice: file_put_contents() [function.file-put-contents]: Write of 472 bytes failed with errno=28 No space left on device in /var/www/Web/core/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/Web/core/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /var/www/Web/core/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]

Notice: file_put_contents() [function.file-put-contents]: Write of 652 bytes failed with errno=28 No space left on device in /var/www/Web/core/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/Web/core/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/Web/core/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164]

Notice: file_put_contents() [function.file-put-contents]: Write of 649 bytes failed with errno=28 No space left on device in /var/www/Web/core/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 140
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/Web/core/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/Web/core/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: Could not start the session, headers already sent in file `CORE/src/Error/Renderer/HtmlErrorRenderer.php` on line `36`

Could not start the session, headers already sent in file CORE/src/Error/Renderer/HtmlErrorRenderer.php on line 36 📋

Cake\Core\Exception\CakeException
Toggle Vendor Stack Frames
<?php         $request = $this->controller->getRequest();
<?php         $lang = $request->getSession()->read(LANG_FRONTEND);        
<?php         if(empty($lang)){
<?php             $lang = TableRegistry::get('Languages')->getDefaultLanguage();
<?php             $request->getSession()->write(LANG_FRONTEND, $lang);
<?php         }
<?php     
<?php         return $lang;
<?php     }

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