$catArr = $catTable->fetchCategoryWithBannerImage($slug)->enableHydration(false)->first();//pr($catArr);if ($catArr['parent_id'] == 0) { //IF THIS IS A MASTER CATEGORY$subCatArr = $catTable->findByAny(['parent_id' => $catArr['id'], 'is_active' => 1])->orderByAsc('name')->enableHydration(false)->toArray();
Cake\Error\ErrorTrap->handleError() /home/customer/www/puchparts.dk/public_html/src/Controller/ProductsController.php, line 193
App\Controller\ProductsController->listing() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 505
Cake\Controller\Controller->invokeAction() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 166
Cake\Controller\ControllerFactory->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 141
Cake\Controller\ControllerFactory->invoke() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 362
Cake\Http\BaseApplication->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/authorization/src/Middleware/AuthorizationMiddleware.php, line 136
Authorization\Middleware\AuthorizationMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 106
Authentication\Middleware\AuthenticationMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 117
Cake\Routing\Middleware\RoutingMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/src/Application.php, line 185
App\Application->{closure:App\Application::middleware():176}() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Middleware/ClosureDecoratorMiddleware.php, line 67
Cake\Http\Middleware\ClosureDecoratorMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 70
Cake\Routing\Middleware\AssetMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 115
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /home/customer/www/puchparts.dk/public_html/webroot/index.php, line 37
[main]
if ($catArr['parent_id'] == 0) { //IF THIS IS A MASTER CATEGORY$subCatArr = $catTable->findByAny(['parent_id' => $catArr['id'], 'is_active' => 1])->orderByAsc('name')->enableHydration(false)->toArray();if (empty($subCatArr)) { //IF THIS MASTER CATEGORY DIRECTLY MAPPED TO PRODUCT i.e. THERE ARE NO SUB-CATEGORY
Cake\Error\ErrorTrap->handleError() /home/customer/www/puchparts.dk/public_html/src/Controller/ProductsController.php, line 194
App\Controller\ProductsController->listing() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 505
Cake\Controller\Controller->invokeAction() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 166
Cake\Controller\ControllerFactory->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 141
Cake\Controller\ControllerFactory->invoke() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 362
Cake\Http\BaseApplication->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/authorization/src/Middleware/AuthorizationMiddleware.php, line 136
Authorization\Middleware\AuthorizationMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 106
Authentication\Middleware\AuthenticationMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 117
Cake\Routing\Middleware\RoutingMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/src/Application.php, line 185
App\Application->{closure:App\Application::middleware():176}() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Middleware/ClosureDecoratorMiddleware.php, line 67
Cake\Http\Middleware\ClosureDecoratorMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 70
Cake\Routing\Middleware\AssetMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 115
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 60
Cake\Http\Runner->run() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Server.php, line 104
Cake\Http\Server->run() /home/customer/www/puchparts.dk/public_html/webroot/index.php, line 37
[main]
$message = "Unable to emit headers. Headers sent in file={$file} line={$line}";trigger_error($message, E_USER_WARNING);}
Cake\Error\ErrorTrap->handleError() [internal], line ?? /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65 Cake\Http\ResponseEmitter->emit() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Server.php, line 148 Cake\Http\Server->emit() /home/customer/www/puchparts.dk/public_html/webroot/index.php, line 37 [main]
$reasonPhrase = $response->getReasonPhrase();header(sprintf('HTTP/%s %d%s',
Cake\Error\ErrorTrap->handleError() [internal], line ?? /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159 Cake\Http\ResponseEmitter->emitStatusLine() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 68 Cake\Http\ResponseEmitter->emit() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Server.php, line 148 Cake\Http\Server->emit() /home/customer/www/puchparts.dk/public_html/webroot/index.php, line 37 [main]
foreach ($values as $value) {header(sprintf('%s: %s',
Cake\Error\ErrorTrap->handleError() [internal], line ?? /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192 Cake\Http\ResponseEmitter->emitHeaders() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 69 Cake\Http\ResponseEmitter->emit() /home/customer/www/puchparts.dk/public_html/vendor/cakephp/cakephp/src/Http/Server.php, line 148 Cake\Http\Server->emit() /home/customer/www/puchparts.dk/public_html/webroot/index.php, line 37 [main]
`parent_id` has invalid `null` value. If `null` is a valid value, operator (IS, IS NOT) is missing.
📋
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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