Warning (2) : Invalid argument supplied for foreach() [CORE/plugins/shop/models/product.php , line 207 ]Code |
Context
$nodepath = $this->ProductNode->getpath($product['Product']['node_id']);
foreach($nodepath as $key => $val) {
$id = "872"
$params = array(
"published" => 1
)
$conditions = array(
"Product.id" => "872"
)
$product = array(
"Product" => array(
"id" => "872",
"node_id" => "0",
"brand_id" => "0",
"slug" => "-",
"title" => "",
"subtitle" => "",
"summary" => "",
"content" => "",
"stock" => "-1",
"price" => "0.00",
"weight" => "0.00",
"featured" => "0",
"published" => "1",
"product_comment_count" => "0",
"vote" => "0",
"rate" => "0",
"can_comment" => "0",
"can_rate" => "0",
"page_title" => "",
"meta_keyword" => "",
"meta_description" => "",
"display_order" => "0",
"created" => "2023-06-15 14:16:24",
"modified" => "2023-06-15 14:16:24",
"rating" => null
),
"ProductNode" => array(
"id" => null,
"parent_id" => null,
"lft" => null,
"rght" => null,
"name" => null,
"short_content" => null,
"content" => null,
"type" => null,
"slug" => null,
"page_title" => null,
"meta_keyword" => null,
"meta_description" => null
),
"Brand" => array(
"id" => null,
"name" => null
),
"ProductImage" => array(
"id" => null,
"product_id" => null,
"type_id" => null,
"title" => null,
"name" => null,
"type" => null,
"path" => null,
"created" => null
),
"ProductAssoc" => array(),
"ProductImageOther" => array(),
"ProductComment" => array(),
"ProductTag" => array(),
"Option" => array(),
"OptionValue" => array(),
"Promotion" => array()
)
$nodepath = null Product::getProductById() - CORE/plugins/shop/models/product.php, line 207
ProductController::detail() - CORE/plugins/shop/controllers/product_controller.php, line 162
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83 Notice (8) : Undefined index: nodes [CORE/plugins/shop/models/product.php , line 211 ]Code |
Context }
unset($nodepath);
$product['Product']['node_path'] = Set::combine($product['Product']['nodes'], '{n}.id', '{n}.name');
$id = "872"
$params = array(
"published" => 1
)
$conditions = array(
"Product.id" => "872"
)
$product = array(
"Product" => array(
"id" => "872",
"node_id" => "0",
"brand_id" => "0",
"slug" => "-",
"title" => "",
"subtitle" => "",
"summary" => "",
"content" => "",
"stock" => "-1",
"price" => "0.00",
"weight" => "0.00",
"featured" => "0",
"published" => "1",
"product_comment_count" => "0",
"vote" => "0",
"rate" => "0",
"can_comment" => "0",
"can_rate" => "0",
"page_title" => "",
"meta_keyword" => "",
"meta_description" => "",
"display_order" => "0",
"created" => "2023-06-15 14:16:24",
"modified" => "2023-06-15 14:16:24",
"rating" => null
),
"ProductNode" => array(
"id" => null,
"parent_id" => null,
"lft" => null,
"rght" => null,
"name" => null,
"short_content" => null,
"content" => null,
"type" => null,
"slug" => null,
"page_title" => null,
"meta_keyword" => null,
"meta_description" => null
),
"Brand" => array(
"id" => null,
"name" => null
),
"ProductImage" => array(
"id" => null,
"product_id" => null,
"type_id" => null,
"title" => null,
"name" => null,
"type" => null,
"path" => null,
"created" => null
),
"ProductAssoc" => array(),
"ProductImageOther" => array(),
"ProductComment" => array(),
"ProductTag" => array(),
"Option" => array(),
"OptionValue" => array(),
"Promotion" => array()
) Product::getProductById() - CORE/plugins/shop/models/product.php, line 211
ProductController::detail() - CORE/plugins/shop/controllers/product_controller.php, line 162
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83 Notice (8) : Undefined index: nodes [CORE/plugins/shop/controllers/product_controller.php , line 169 ]Code |
Context
$nodes = array();
foreach($product['Product']['nodes'] as $n) {
$id = "872"
$product = array(
"Product" => array(
"id" => "872",
"node_id" => "0",
"brand_id" => "0",
"slug" => "-",
"title" => "",
"subtitle" => "",
"summary" => "",
"content" => "",
"stock" => "-1",
"price" => "0.00",
"weight" => "0.00",
"featured" => "0",
"published" => "1",
"product_comment_count" => "0",
"vote" => "0",
"rate" => "0",
"can_comment" => "0",
"can_rate" => "0",
"page_title" => "",
"meta_keyword" => "",
"meta_description" => "",
"display_order" => "0",
"created" => "2023-06-15 14:16:24",
"modified" => "2023-06-15 14:16:24",
"rating" => null,
"node_path" => array()
),
"ProductNode" => array(
"id" => null,
"parent_id" => null,
"lft" => null,
"rght" => null,
"name" => null,
"short_content" => null,
"content" => null,
"type" => null,
"slug" => null,
"page_title" => null,
"meta_keyword" => null,
"meta_description" => null
),
"Brand" => array(
"id" => null,
"name" => null
),
"ProductImage" => array(
"id" => null,
"product_id" => null,
"type_id" => null,
"title" => null,
"name" => null,
"type" => null,
"path" => null,
"created" => null
),
"ProductAssoc" => array(),
"ProductImageOther" => array(),
"ProductComment" => array(),
"ProductTag" => array(),
"Option" => array(),
"OptionValue" => array(),
"Promotion" => array(),
array(
"real_price" => "0.00"
)
)
$nodes = array() ProductController::detail() - CORE/plugins/shop/controllers/product_controller.php, line 169
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83 Warning (2) : Invalid argument supplied for foreach() [CORE/plugins/shop/controllers/product_controller.php , line 169 ]Code |
Context
$nodes = array();
foreach($product['Product']['nodes'] as $n) {
$id = "872"
$product = array(
"Product" => array(
"id" => "872",
"node_id" => "0",
"brand_id" => "0",
"slug" => "-",
"title" => "",
"subtitle" => "",
"summary" => "",
"content" => "",
"stock" => "-1",
"price" => "0.00",
"weight" => "0.00",
"featured" => "0",
"published" => "1",
"product_comment_count" => "0",
"vote" => "0",
"rate" => "0",
"can_comment" => "0",
"can_rate" => "0",
"page_title" => "",
"meta_keyword" => "",
"meta_description" => "",
"display_order" => "0",
"created" => "2023-06-15 14:16:24",
"modified" => "2023-06-15 14:16:24",
"rating" => null,
"node_path" => array()
),
"ProductNode" => array(
"id" => null,
"parent_id" => null,
"lft" => null,
"rght" => null,
"name" => null,
"short_content" => null,
"content" => null,
"type" => null,
"slug" => null,
"page_title" => null,
"meta_keyword" => null,
"meta_description" => null
),
"Brand" => array(
"id" => null,
"name" => null
),
"ProductImage" => array(
"id" => null,
"product_id" => null,
"type_id" => null,
"title" => null,
"name" => null,
"type" => null,
"path" => null,
"created" => null
),
"ProductAssoc" => array(),
"ProductImageOther" => array(),
"ProductComment" => array(),
"ProductTag" => array(),
"Option" => array(),
"OptionValue" => array(),
"Promotion" => array(),
array(
"real_price" => "0.00"
)
)
$nodes = array() ProductController::detail() - CORE/plugins/shop/controllers/product_controller.php, line 169
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83
Fedwood Timber - Balustrading, Handrails, Posts, Verandah Brackets and more -