Warning (2): Attempt to read property "category_id" on null [APP/Controller/ProductsController.php, line 708]Code Context ->where([
'LandingPages.category_id' => $product->category_id,
])
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 708
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 609
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 234
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 120
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
App\Routing\Middleware\RoutingMiddleware::__invoke() - APP/Routing/Middleware/RoutingMiddleware.php, line 140
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 96
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Warning (2): Attempt to read property "brand_id" on null [APP/Controller/ProductsController.php, line 712]Code Context $q->where(['LandingPageFilterValues.model' => 'Brands']);
$q->where(['LandingPageFilterValues.foreign_key' => $product->brand_id]);
return $q;
App\Controller\ProductsController::App\Controller\{closure}() - APP/Controller/ProductsController.php, line 712
Cake\ORM\Association::attachTo() - CORE/src/ORM/Association.php, line 1013
Cake\ORM\EagerLoader::attachAssociations() - CORE/src/ORM/EagerLoader.php, line 486
Cake\ORM\Query::_transformQuery() - CORE/src/ORM/Query.php, line 1188
Cake\ORM\Query::sql() - CORE/src/ORM/Query.php, line 1137
Cake\Database\Driver\Mysql::prepare() - CORE/src/Database/Driver/Mysql.php, line 141
Cake\Database\Connection::Cake\Database\{closure}() - CORE/src/Database/Connection.php, line 274
Cake\Core\Retry\CommandRetry::run() - CORE/src/Core/Retry/CommandRetry.php, line 67
Cake\Database\Connection::prepare() - CORE/src/Database/Connection.php, line 273
Cake\Database\Connection::Cake\Database\{closure}() - CORE/src/Database/Connection.php, line 331
Cake\Core\Retry\CommandRetry::run() - CORE/src/Core/Retry/CommandRetry.php, line 67
Cake\Database\Connection::run() - CORE/src/Database/Connection.php, line 330
Cake\Database\Query::execute() - CORE/src/Database/Query.php, line 218
Cake\ORM\Query::_execute() - CORE/src/ORM/Query.php, line 1158
Cake\ORM\Query::_all() - CORE/src/Datasource/QueryTrait.php, line 310
Cake\ORM\Query::all() - CORE/src/ORM/Query.php, line 1105
Cake\ORM\Query::first() - CORE/src/Datasource/QueryTrait.php, line 472
Warning (512): Unable to emit headers. Headers sent in file=/var/www/vhosts/hippeschoentjes.be/vendor/miljaar-web-development/cakephp/src/Error/Debugger.php line=856 [CORE/src/Http/ResponseEmitter.php, line 51]Code Context if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
} else {
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 51
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 140
[main] - ROOT/public/index.php, line 43
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hippeschoentjes.be/vendor/miljaar-web-development/cakephp/src/Error/Debugger.php:856) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context $reasonPhrase = $response->getReasonPhrase();
header(sprintf(
'HTTP/%s %d%s',
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 57
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 140
[main] - ROOT/public/index.php, line 43
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hippeschoentjes.be/vendor/miljaar-web-development/cakephp/src/Error/Debugger.php:856) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 140
[main] - ROOT/public/index.php, line 43
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hippeschoentjes.be/vendor/miljaar-web-development/cakephp/src/Error/Debugger.php:856) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context foreach ($values as $value) {
header(sprintf(
'%s: %s',
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 140
[main] - ROOT/public/index.php, line 43
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hippeschoentjes.be/vendor/miljaar-web-development/cakephp/src/Error/Debugger.php:856) [CORE/src/Http/ResponseEmitter.php, line 203]Code Context if (is_array($cookie)) {
setcookie(
$cookie['name'],
setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 203
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 190
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 58
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 140
[main] - ROOT/public/index.php, line 43