Notice (8): Trying to get property 'slug' of non-object [APP/Controller/CompaniesCategoriesController.php, line 68]Code Context $slug = (!empty($currentCategory->_translations[$lang]->slug)) ? $currentCategory->_translations[$lang]->slug : $currentCategory->slug;
$slug_city = (!empty($currentCity->_translations[$lang]->slug)) ? $currentCity->_translations[$lang]->slug : $currentCity->slug;
$loc = '/'.$lang.$currentCategory->preHref.$slug_city.'/'.$slug;
$slug = 'body-work'
$currentCategory = object(App\Model\Entity\CompaniesCategory) {
'id' => (int) 19,
'wp_term_id' => null,
'wp_term2_id' => null,
'wp_term3_id' => null,
'name' => 'Body work',
'slug' => 'body-work',
'cover' => null,
'slug_old_uk' => 'kuzovni-roboti',
'slug_old_ru' => 'kuzovnye-raboty',
'slug_old_en' => 'bodywork',
'seo_title' => 'ᐈ Body work - Catalog of car companies AVTOAD',
'seo_description' => 'All information about Body work - ⭐️ Company rating ✔️ Recent data ✔️ Addresses ✔️ Phones ✔️ Photo',
'seo_text' => '<p>On the site, you can find companies that offer bodywork services. Choose a region, a service station or a car service and look for an option that is profitable for you.</p>',
'parent_id' => (int) 1,
'created' => (int) 1550759728,
'modified' => (int) 1663598203,
'lft' => (int) 2147483619,
'rght' => (int) 2147483619,
'_locale' => 'en',
'_translations' => [
'ru' => object(App\Model\Entity\CompaniesCategory) {},
'en' => object(App\Model\Entity\CompaniesCategory) {}
],
'[new]' => false,
'[accessible]' => [
'*' => true
],
'[dirty]' => [],
'[original]' => [],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'CompaniesCategories'
}
$slug_old_name = 'slug_old_en'
$conditions = [
'CompaniesCategories_slug_translation.content' => 'kuzovni-roboti'
]
$id = null
$slug_city = ''
$currentCity = null
$lang = 'en'
App\Controller\CompaniesCategoriesController::view() - APP/Controller/CompaniesCategoriesController.php, line 68
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 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Middleware\CsrfProtectionMiddleware::__invoke() - CORE/src/Http/Middleware/CsrfProtectionMiddleware.php, line 103
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 156
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 98
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Cake\Http\Server::run() - CORE/src/Http/Server.php, line 98
[main] - ROOT/www/index.php, line 40
Warning (512): Unable to emit headers. Headers sent in file=/home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 [CORE/src/Http/ResponseEmitter.php, line 48]Code Context if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
} else {
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$maxBufferLength = (int) 8192
$file = '/home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 853
$message = 'Unable to emit headers. Headers sent in file=/home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php line=853'
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/www/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context $response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
));
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$reasonPhrase = 'Moved Permanently'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/www/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $value
), $first);
$first = false;
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '69a5295333c5cbcf0416ff9f881e1599eaecc79537f5aa6b9065040b09a35d39eb7072ecfbb5bf08acf277fdef2dc2f5c971cd738ff97cc539e4a7ad4e529205',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
]
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/www/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $value
), $first);
$first = false;
$response = object(Cake\Http\Response) {
'status' => (int) 301,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
],
'Location' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => object(Cake\Http\Cookie\CookieCollection) {},
'cacheDirectives' => [],
'body' => ''
}
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '69a5295333c5cbcf0416ff9f881e1599eaecc79537f5aa6b9065040b09a35d39eb7072ecfbb5bf08acf277fdef2dc2f5c971cd738ff97cc539e4a7ad4e529205',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
]
$values = [
(int) 0 => 'https://avtoad.com.ua/en/listing/body-work'
]
$name = 'Location'
$first = true
$value = 'https://avtoad.com.ua/en/listing/body-work'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/www/index.php, line 40
Warning (2): Cannot modify header information - headers already sent by (output started at /home/avtoad/avtoad.com.ua/vendor/cakephp/cakephp/src/Error/Debugger.php:853) [CORE/src/Http/ResponseEmitter.php, line 206]Code Context $cookie['secure'],
$cookie['httpOnly']
);
$cookies = [
'csrfToken' => [
'name' => 'csrfToken',
'value' => '69a5295333c5cbcf0416ff9f881e1599eaecc79537f5aa6b9065040b09a35d39eb7072ecfbb5bf08acf277fdef2dc2f5c971cd738ff97cc539e4a7ad4e529205',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
]
$cookie = [
'name' => 'csrfToken',
'value' => '69a5295333c5cbcf0416ff9f881e1599eaecc79537f5aa6b9065040b09a35d39eb7072ecfbb5bf08acf277fdef2dc2f5c971cd738ff97cc539e4a7ad4e529205',
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => true,
'expire' => null
]
setcookie - [internal], line ??
Cake\Http\ResponseEmitter::emitCookies() - CORE/src/Http/ResponseEmitter.php, line 206
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 186
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141
[main] - ROOT/www/index.php, line 40