Keyword

Error if acces K2 items after update to VM 2.0.14

  • Kolio Kolev
  • Kolio Kolev's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago - 11 years 10 months ago #106514 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

Please Log in or Create an account to join the conversation.

  • marco Di Giovambattista
  • marco Di Giovambattista's Avatar
  • Offline
  • New Member
More
11 years 10 months ago - 11 years 10 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);

Please Log in or Create an account to join the conversation.

  • Kolio Kolev
  • Kolio Kolev's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago #106516 by Kolio Kolev
Thank you Marco! I'll try this afternoon.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #106517 by MTI TRAVEL
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;
}*/

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #106518 by MTI TRAVEL
Ahh sorry, line 62 in:
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.


Powered by Kunena Forum