VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Phoenix616 on November 05, 2019, 21:15:51 PM

Title: Undefined property: TableCategories::$virtuemart_id
Post by: Phoenix616 on November 05, 2019, 21:15:51 PM
Using Virtuemart 3.6.2 you get the following notice in the category layout:
QuoteNotice: Undefined property: TableCategories::$virtuemart_id in <path>\components\com_virtuemart\views\category\view.html.php on line 723

This seems to be due to the usage of the unknown field $cat->virtuemart_id here (https://dev.virtuemart.net/projects/virtuemart/repository/entry/trunk/virtuemart/components/com_virtuemart/views/category/view.html.php#L741) instead of $cat->virtuemart_category_id
Title: Re: Undefined property: TableCategories::$virtuemart_id
Post by: StefanSTS on November 05, 2019, 21:18:15 PM
Would you please update to 3.6.8 in a test environment and see if it works? Thanks
Title: Re: Undefined property: TableCategories::$virtuemart_id
Post by: Milbo on November 07, 2019, 11:38:57 AM
Thank you very much. Perfect bug report. Stupid that I did not see that earlier.
Title: Re: Undefined property: TableCategories::$virtuemart_id
Post by: ripple on December 17, 2019, 13:16:36 PM
I am using VirtueMart 3.6.8 10197 and get the following error when I click on the PayPal Payment options:

Notice: Undefined property: TablePaymentmethods::$virtuemart_shipmentmethod_ids in <path>/administrator/components/com_virtuemart/views/paymentmethod/view.html.php on line 86

Followed by the following on the 'Payment Method Information' tab:

Notice: Undefined property: TablePaymentmethods::$min_amount in <path>/administrator/components/com_virtuemart/views/paymentmethod/tmpl/edit_edit.php on line 34

Notice: Undefined property: TablePaymentmethods::$max_amount in <path>/administrator/components/com_virtuemart/views/paymentmethod/tmpl/edit_edit.php on line 35

Notice: Undefined property: TablePaymentmethods::$categories in <path>/administrator/components/com_virtuemart/views/paymentmethod/tmpl/edit_edit.php on line 44

Notice: Undefined property: TablePaymentmethods::$blocking_categories in <path>/administrator/components/com_virtuemart/views/paymentmethod/tmpl/edit_edit.php on line 49

Notice: Undefined property: TablePaymentmethods::$countries in <path>/administrator/components/com_virtuemart/views/paymentmethod/tmpl/edit_edit.php on line 54

Notice: Undefined property: TablePaymentmethods::$blocking_countries in <path>/administrator/components/com_virtuemart/views/paymentmethod/tmpl/edit_edit.php on line 55

Title: Re: Undefined property: TableCategories::$virtuemart_id
Post by: copyman on January 14, 2020, 21:59:38 PM
Same error in Virtuemart  3.6.10 10211  like Ripple

EDIT: Fixed - I changed the currency of the USD in Payment Method Information, save - no errrors, I changed my currency (BGN) back, save and again there is no errors! Тhe store is migrated from an old version of virtuеmart 2.2
Title: Re: Undefined property: TableCategories::$virtuemart_id
Post by: Studio 42 on January 15, 2020, 00:02:24 AM
The payment problem can be because the new values on upgrade are missing in the table.
So on save the method, the problem should be solved