- Posts: 10
COMMUNITY FORUM
Error if acces K2 items after update to VM 2.0.14
- Kolio Kolev
-
Topic Author
- Offline
- New Member
Less
More
12 years 6 months ago - 12 years 6 months ago #106514
by Kolio Kolev
Error if acces K2 items after update to VM 2.0.14 was created by Kolio Kolev
Hi,
My website is based on Joomla 2.5.8, K2 2.5.7, K2mart 2.0.2, SimpleImageGallery Pro but after update of Virtuemart from 2.0.12f to 2.0.14 it returns error when I try to access items in backend. I will try to step back to older version for now.
Fatal error: Call to undefined method VirtueMartModelProduct::getProductChilds() in /home/user_folder/public_html/my-domain.com/plugins/k2/k2mart/includes/elements/virtuemart.php on line 62
Please help
My website is based on Joomla 2.5.8, K2 2.5.7, K2mart 2.0.2, SimpleImageGallery Pro but after update of Virtuemart from 2.0.12f to 2.0.14 it returns error when I try to access items in backend. I will try to step back to older version for now.
Fatal error: Call to undefined method VirtueMartModelProduct::getProductChilds() in /home/user_folder/public_html/my-domain.com/plugins/k2/k2mart/includes/elements/virtuemart.php on line 62
Please help
Please Log in or Create an account to join the conversation.
- marco Di Giovambattista
-
- Offline
- New Member
Less
More
- Posts: 1
12 years 6 months ago - 12 years 6 months ago #106515
by marco Di Giovambattista
Replied by marco Di Giovambattista on topic Re: Error if acces K2 items after update to VM 2.0.14
The new method in Virtuemart is named getProductChildIds in administrator/components/com_virtuemart/models/product.php
.
So you have to change line 62 to $product->children = $model->getProductChildIds($productID);
.
So you have to change line 62 to $product->children = $model->getProductChildIds($productID);
Please Log in or Create an account to join the conversation.
- Kolio Kolev
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 10
12 years 6 months ago #106516
by Kolio Kolev
Replied by Kolio Kolev on topic Re: Error if acces K2 items after update to VM 2.0.14
Thank you Marco! I'll try this afternoon.
Please Log in or Create an account to join the conversation.
- MTI TRAVEL
-
- Offline
- New Member
Less
More
- Posts: 11
12 years 6 months ago #106517
by MTI TRAVEL
Replied by MTI TRAVEL on topic Re: Error if acces K2 items after update to VM 2.0.14
Hello
I have exactly the same problem, but i don't find find anything in line 62, is empty, i found on line 486:
// This makes products searchable, we decided that this is not good, because variant childs appear then in lists
//So the new convention is that products which should be shown on a category or a manufacturer page should have entered this data
/* if ($joinCategory == true || $joinMf) {
$tmp = array();;
foreach($product_ids as $k=>$id){
$tmp[] = $id;
$children = $this->getProductChildIds($id);
if($children){
$tmp = array_merge($tmp,$children);
}
}
$product_ids = $tmp;
}*/
I have exactly the same problem, but i don't find find anything in line 62, is empty, i found on line 486:
// This makes products searchable, we decided that this is not good, because variant childs appear then in lists
//So the new convention is that products which should be shown on a category or a manufacturer page should have entered this data
/* if ($joinCategory == true || $joinMf) {
$tmp = array();;
foreach($product_ids as $k=>$id){
$tmp[] = $id;
$children = $this->getProductChildIds($id);
if($children){
$tmp = array_merge($tmp,$children);
}
}
$product_ids = $tmp;
}*/
Please Log in or Create an account to join the conversation.
- MTI TRAVEL
-
- Offline
- New Member
Less
More
- Posts: 11
12 years 6 months ago #106518
by MTI TRAVEL
Replied by MTI TRAVEL on topic Re: Error if acces K2 items after update to VM 2.0.14
Ahh sorry, line 62 in:
my-domain.com/plugins/k2/k2mart/includes/elements/virtuemart.php
Great , works fine now
Many thanks Marco , Kolev
my-domain.com/plugins/k2/k2mart/includes/elements/virtuemart.php
Great , works fine now
Many thanks Marco , Kolev
Please Log in or Create an account to join the conversation.