VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: rvbgnu on July 20, 2012, 22:53:54 pm

Title: Product details: failed to setPrimaryKey leads to COM_VIRTUEMART__PKEY
Post by: rvbgnu on July 20, 2012, 22:53:54 pm
Hi,
I was tracking down another potential bug (see here http://forum.virtuemart.net/index.php?topic=90833.msg351312#msg351312) and I saw a weird language constant...

Currently working with VM2.0.8e on Joomla 2.5.6 PHP 5.3.1/5.2.3
Multi linguale shop, custom field type: Cart variant

Call from
index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=82&virtuemart_category_id=16&Itemid=181&lang=en

Debug stack
Code: [Select]
WEBROOT/libraries/joomla/language/language.php.JLanguage->_ : lineno 345() WEBROOT/libraries/joomla/language/language.php at line 345
WEBROOT/libraries/joomla/methods.php.JText::_ : lineno 160() WEBROOT/libraries/joomla/methods.php at line 160
WEBROOT/administrator/components/com_virtuemart/helpers/vmtable.php.VmTable->setObligatoryKeys : lineno 67() WEBROOT/administrator/components/com_virtuemart/helpers/vmtable.php at line 67
WEBROOT/administrator/components/com_virtuemart/helpers/vmtable.php.VmTable->setPrimaryKey : lineno 60()
WEBROOT/administrator/components/com_virtuemart/helpers/vmtable.php at line 60
WEBROOT/administrator/components/com_virtuemart/tables/product_prices.php.TableProduct_prices->__construct : lineno 66()
WEBROOT/administrator/components/com_virtuemart/tables/product_prices.php at line 66
=> $key = COM_VIRTUEMART__PKEY

Not critical IMHO, but I don't know VM2 enough to evaluate this.  8)

PS: keep oj the good work VM Dev team  \o/
Title: Re: Product details: failed to setPrimaryKey leads to COM_VIRTUEMART__PKEY
Post by: Milbo on July 23, 2012, 11:39:32 am
Thx
Title: Re: Product details: failed to setPrimaryKey leads to COM_VIRTUEMART__PKEY
Post by: rvbgnu on July 24, 2012, 15:52:12 pm
You're more than welcome Max  8)