Notice (1024) : Undefined property: ErrorController::$logined in /var/www/html/ethnicnmore/site/src/Controller/AppController.php on line 316 [in /var/www/html/ethnicnmore/site/vendor/cakephp/cakephp/src/Controller/Controller.php, line 329]
Notice (1024) : Undefined property: ErrorController::$Carts in /var/www/html/ethnicnmore/site/src/Controller/AppController.php on line 323 [in /var/www/html/ethnicnmore/site/vendor/cakephp/cakephp/src/Controller/Controller.php, line 329]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/ethnicnmore/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /var/www/html/ethnicnmore/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/ethnicnmore/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/html/ethnicnmore/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/ethnicnmore/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/html/ethnicnmore/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/ethnicnmore/site/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/html/ethnicnmore/site/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: Record not found in table "products"

Record not found in table "products" 📋

Cake\Datasource\Exception\RecordNotFoundException
Toggle Vendor Stack Frames
        }
        public function product($slug null)
        
            
            $product $this->Products->find()->contain(['ProductMetas','ProductDescriptions','ProductImages','CategoryMaps','ProductInventories'])->where(['slug' => $slug])->disableHydration()->firstOrFail();
            
            $related '';
            //related product
            if($product['catalog_no']){

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