Notice (1024) : Undefined property: ErrorController::$logined in /var/www/html/offloo/site/src/Controller/AppController.php on line 311 [in /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Controller/Controller.php, line 329]
Notice (1024) : Undefined property: ErrorController::$Carts in /var/www/html/offloo/site/src/Controller/AppController.php on line 318 [in /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Controller/Controller.php, line 329]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/offloo/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/html/offloo/site/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: Record not found in table "tags"

Record not found in table "tags" 📋

Cake\Datasource\Exception\RecordNotFoundException
Toggle Vendor Stack Frames
        }
        private function findProductByTags($tag,$limit,$sort){
            
            $tags $this->Tags->findByName($tag)->firstOrFail();
        
            $order $this->sortBy($sort);
            /* pr($tags);
            die; */

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