VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stawebnice on November 15, 2015, 17:52:34 PM

Title: VM 2.6.18: vmERROR: related product is missing
Post by: stawebnice on November 15, 2015, 17:52:34 PM
Hi, please advise how to remove this error from front end. I don't see it, but client does ( I suspect that only logged in admin does and on Mac, because I don't see it logged in on PC), however, there are not related products assigned and we get this on category page...

http://imtp.me/acw102lj3
Title: Re: VM 2.6.18: vmERROR: related product is missing
Post by: GJC Web Design on November 15, 2015, 21:44:25 PM
comes from  administrator\components\com_virtuemart\models\customfields.php line 1128

/* related */
            case 'R':
               $pModel = VmModel::getModel('product');
               $related = $pModel->getProduct((int)$value,TRUE,TRUE,TRUE,1,FALSE);
               if(!$related){
                  vmError('related product is missing, maybe unpublished '.$product->product_name.' id: '.$product->virtuemart_product_id);
                  return false;
               }