Author Topic: Infinite recursion on VM3.4.2 (Virtuemart bug)  (Read 2242 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9943
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Infinite recursion on VM3.4.2 (Virtuemart bug)
« Reply #15 on: October 22, 2018, 00:03:10 am »
Good work, Stan and studio42. the right fix from my point of view is in view.html.php of the category view

around line 678
Code: [Select]
$cat = VmModel::getModel('category')->getCategory($last_category_id, false, true);
if(empty($cat->virtuemart_category_id) or !$cat->published){
$last_category_id = 0;
}

I added already a check if the category exists, but forgot to check for published. Another idea to fix is to implement the 3rd parameter to the function getCategory, correctly.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/