VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: misterpo on October 15, 2013, 20:28:20 PM

Title: VM module : Trying to get property of non-object in product.php on line 1082
Post by: misterpo on October 15, 2013, 20:28:20 PM
Hello all,

I use VM 2.0.24 French and Joomla 2.5.14, so the latest versions of these products.

I should say I am brand new to VirtueMart. I use it to display a products catalog without the e-commerce aspects.

I have the same error when using the VM Products and VM categories modules on my development web site : http://contat.alptic-dev.fr/ :

Trying to get property of non-object in my-path/product.php on line 1081

Trying to get property of non-object in my-path/product.php on line 1082

product.php lines 1081 and 1082 show :

$product->id = $ordering->id;
vmdebug('$product->virtuemart_category_id no ordering stored for '.$ordering->id);

Table virtuemart_product_categories contains the following :

Textes complets    id    virtuemart_product_id    virtuemart_category_id    ordering
   Modifier Modifier    Copier Copier    Effacer Effacer    1    1    1    0
   Modifier Modifier    Copier Copier    Effacer Effacer    2    2    1    0
   Modifier Modifier    Copier Copier    Effacer Effacer    3    3    2    0
   Modifier Modifier    Copier Copier    Effacer Effacer    4    4    2    0

Table virtuemart_category_categories contains the following :

id    category_parent_id    category_child_id    ordering
   Modifier Modifier    Copier Copier    Effacer Effacer    1   0    1    1
   Modifier Modifier    Copier Copier    Effacer Effacer    2   0    2    2

Any idea ?
Title: Re: VM module : Trying to get property of non-object in product.php on line 1082
Post by: misterpo on October 16, 2013, 16:55:57 PM
Hi,

Problem has been fixed by removing and re-creationg the products.

Topic closed