Warning (2): Missing argument 1 for ProductsController::instrument() [APP\controllers\products_controller.php, line 231]Code }
function instrument($slug, $productSeriesSlug = null) {
ProductsController::instrument() - APP\controllers\products_controller.php, line 231
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 204
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
require - APP\webroot\index.php, line 83
[main] - CORE\index.php, line 55
Notice (8): Undefined variable: slug [APP\controllers\products_controller.php, line 251]Code |
Context $instrument = $this->Product->ProductSeries->Instrument->find('first',array(
'conditions'=>array(
'Instrument.slug'=>$slug,
$productSeriesSlug = null
ProductsController::instrument() - APP\controllers\products_controller.php, line 251
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 204
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
require - APP\webroot\index.php, line 83
[main] - CORE\index.php, line 55
Warning (2): Invalid argument supplied for foreach() [APP\controllers\products_controller.php, line 259]Code |
Context
foreach($instrument['ProductSeries'] as $productSeriesKey => $productSeries){
$productSeriesSlug = null
$instrument = false
ProductsController::instrument() - APP\controllers\products_controller.php, line 259
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 204
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
require - APP\webroot\index.php, line 83
[main] - CORE\index.php, line 55
Warning (2): Cannot modify header information - headers already sent by (output started at E:\vhosts\michaelkellyguitars.com\httpdocs\cake\libs\debugger.php:686) [CORE\cake\libs\controller\controller.php, line 742]Code |
Context$status = "Location: http://www.michaelkellyguitars.com/"
header - [internal], line ??
Controller::header() - CORE\cake\libs\controller\controller.php, line 742
Controller::redirect() - CORE\cake\libs\controller\controller.php, line 721
ProductsController::instrument() - APP\controllers\products_controller.php, line 274
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 204
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171
require - APP\webroot\index.php, line 83
[main] - CORE\index.php, line 55