News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VM module : Trying to get property of non-object in product.php on line 1082

Started by misterpo, October 15, 2013, 20:28:20 PM

Previous topic - Next topic

misterpo

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 ?

misterpo

Hi,

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

Topic closed