Warning (2) : Undefined array key "cate_ids" [in /www/belovedbeyondcake5-uat/src/Controller/Component/ExtProductComponent.php, line 2574]
Warning (512) : Unable to emit headers. Headers sent in file=/www/belovedbeyondcake5-uat/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /www/belovedbeyondcake5-uat/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /www/belovedbeyondcake5-uat/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /www/belovedbeyondcake5-uat/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159]
Warning (2) : Cannot modify header information - headers already sent by (output started at /www/belovedbeyondcake5-uat/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /www/belovedbeyondcake5-uat/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Error: array_intersect(): Argument #1 ($array) must be of type array, null given

array_intersect(): Argument #1 ($array) must be of type array, null given 📋

TypeError
Error in: APP/Controller/Component/ExtProductComponent.php, line 2574
APP/Controller/Component/ExtProductComponent.php at line 2574 (edit)
            if (!empty($cateHolidays)) {
                $holidayCateId array_keys($cateHolidays);
                $isProductHoliday array_intersect($product['Product']['cate_ids'], $holidayCateId);
                $isProductHoliday = !empty($isProductHoliday);
            }

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