Notice (8): Undefined index: HTTP_ACCEPT_LANGUAGE [APP/Controller/AppController.php, line 283]Code Context $selectedLang = $this->session->read('language');
$acceptLang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$selectedLang = 'en'
App\Controller\AppController::setLanguage() - APP/Controller/AppController.php, line 283
App\Controller\AppController::beforeFilter() - APP/Controller/AppController.php, line 189
App\Controller\ProductsController::beforeFilter() - APP/Controller/ProductsController.php, line 38
Cake\Event\EventManager::_callListener() - CORE/src/Event/EventManager.php, line 351
Cake\Event\EventManager::dispatch() - CORE/src/Event/EventManager.php, line 328
Cake\Controller\Controller::dispatchEvent() - CORE/src/Event/EventDispatcherTrait.php, line 112
Cake\Controller\Controller::startupProcess() - CORE/src/Controller/Controller.php, line 673
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 115
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165
Notice (8): Undefined variable: colorProd [APP/Controller/ProductsController.php, line 282]Code Context }
$value_id = array_column($colorProd, 'value_id');
array_multisort($value_id, SORT_ASC, $colorProd); // sort by color id
$title = 'hp-ch564wn-hp-61xl-ink-inkjet-cartridge-tri-color-high-yield'
$id = '218292'
$allPics = [
(int) 0 => object(App\Model\Entity\Picture) {
'picture_id' => (int) 24624,
'product_id' => (int) 218292,
'name' => 'image-coming-soon.png',
'orders' => (int) 1,
'site_name' => 'exceltoner',
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Pictures'
}
]
$platformCond = []
$product = []
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 282
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165
Warning (2): array_column() expects parameter 1 to be array, null given [APP/Controller/ProductsController.php, line 282]Code Context }
$value_id = array_column($colorProd, 'value_id');
array_multisort($value_id, SORT_ASC, $colorProd); // sort by color id
$title = 'hp-ch564wn-hp-61xl-ink-inkjet-cartridge-tri-color-high-yield'
$id = '218292'
$allPics = [
(int) 0 => object(App\Model\Entity\Picture) {
'picture_id' => (int) 24624,
'product_id' => (int) 218292,
'name' => 'image-coming-soon.png',
'orders' => (int) 1,
'site_name' => 'exceltoner',
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Pictures'
}
]
$platformCond = []
$product = []
array_column - [internal], line ??
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 282
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165
Warning (2): array_multisort() [<a href='https://secure.php.net/function.array-multisort'>function.array-multisort</a>]: Argument #1 is expected to be an array or a sort flag [APP/Controller/ProductsController.php, line 283]Code Context $value_id = array_column($colorProd, 'value_id');
array_multisort($value_id, SORT_ASC, $colorProd); // sort by color id
$product[0]["rv5"] = array_unique($colorProd, SORT_REGULAR); //not sure why only lovetoner needs this
$title = 'hp-ch564wn-hp-61xl-ink-inkjet-cartridge-tri-color-high-yield'
$id = '218292'
$allPics = [
(int) 0 => object(App\Model\Entity\Picture) {
'picture_id' => (int) 24624,
'product_id' => (int) 218292,
'name' => 'image-coming-soon.png',
'orders' => (int) 1,
'site_name' => 'exceltoner',
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Pictures'
}
]
$platformCond = []
$product = []
$colorProd = null
$value_id = null
array_multisort - [internal], line ??
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 283
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165
Warning (2): array_unique() expects parameter 1 to be array, null given [APP/Controller/ProductsController.php, line 284]Code Context array_multisort($value_id, SORT_ASC, $colorProd); // sort by color id
$product[0]["rv5"] = array_unique($colorProd, SORT_REGULAR); //not sure why only lovetoner needs this
$title = 'hp-ch564wn-hp-61xl-ink-inkjet-cartridge-tri-color-high-yield'
$id = '218292'
$allPics = [
(int) 0 => object(App\Model\Entity\Picture) {
'picture_id' => (int) 24624,
'product_id' => (int) 218292,
'name' => 'image-coming-soon.png',
'orders' => (int) 1,
'site_name' => 'exceltoner',
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Pictures'
}
]
$platformCond = []
$product = []
$colorProd = null
$value_id = null
array_unique - [internal], line ??
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 284
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165
Notice (8): Trying to get property 'products' of non-object [APP/Controller/ProductsController.php, line 289]Code Context }
if ($product[0]->products['id'] == '') {
return $this->redirect(['controller' => 'pages', 'action' => 'notfind']);
$title = 'hp-ch564wn-hp-61xl-ink-inkjet-cartridge-tri-color-high-yield'
$id = '218292'
$allPics = [
(int) 0 => object(App\Model\Entity\Picture) {
'picture_id' => (int) 24624,
'product_id' => (int) 218292,
'name' => 'image-coming-soon.png',
'orders' => (int) 1,
'site_name' => 'exceltoner',
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Pictures'
}
]
$platformCond = []
$product = [
(int) 0 => [
'rv5' => null
]
]
$colorProd = null
$value_id = null
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 289
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165
Notice (8): Trying to access array offset on value of type null [APP/Controller/ProductsController.php, line 289]Code Context }
if ($product[0]->products['id'] == '') {
return $this->redirect(['controller' => 'pages', 'action' => 'notfind']);
$title = 'hp-ch564wn-hp-61xl-ink-inkjet-cartridge-tri-color-high-yield'
$id = '218292'
$allPics = [
(int) 0 => object(App\Model\Entity\Picture) {
'picture_id' => (int) 24624,
'product_id' => (int) 218292,
'name' => 'image-coming-soon.png',
'orders' => (int) 1,
'site_name' => 'exceltoner',
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[hasErrors]' => false,
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Pictures'
}
]
$platformCond = []
$product = [
(int) 0 => [
'rv5' => null
]
]
$colorProd = null
$value_id = null
App\Controller\ProductsController::view() - APP/Controller/ProductsController.php, line 289
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 606
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 120
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 66
[main] - ROOT/webroot/index.php, line 165