Notice: Undefined property: DomainsController::$catalogService in /var/www/html/cakephp/src/Controller/DomainsController.php on line 742 in /var/www/html/cakephp/vendor/cakephp/cakephp/src/Controller/Controller.php on line 337

Warning: Unable to emit headers. Headers sent in file=/var/www/html/cakephp/vendor/cakephp/cakephp/src/Controller/Controller.php line=337 in /var/www/html/cakephp/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cakephp/vendor/cakephp/cakephp/src/Controller/Controller.php:337) in /var/www/html/cakephp/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/cakephp/vendor/cakephp/cakephp/src/Controller/Controller.php:337) in /var/www/html/cakephp/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php on line 197
Error: Call to a member function setCatalogPrefixAndCacheKey() on null

Call to a member function setCatalogPrefixAndCacheKey() on null 📋

Error
Toggle Vendor Stack Frames
     * @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterfaceinstance.
     */
    public function invokeAction(Closure $action, array $args): void
    {
        $result $action(...$args);
        if ($result !== null && !$result instanceof ResponseInterface) {
            throw new UnexpectedValueException(sprintf(
                'Controller actions can only return ResponseInterface instance or null. '
                'Got %s instead.',
Error in: ROOT/src/Controller/DomainsController.php, line 742

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