News:

Looking for documentation? Take a look on our wiki

Main Menu

Infinite recursion on VM3.4.2 (Virtuemart bug)

Started by stAn99, October 12, 2018, 10:50:20 AM

Previous topic - Next topic

Milbo

Quote from: Milbo on October 21, 2018, 18:49:51 PM
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

$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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/