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

[Solved] Error after the update VirtueMart 3.8.6 10373

Started by elanto75, November 25, 2020, 16:43:49 PM

Previous topic - Next topic

elanto75

Good morning,
after the update every time I put a product in the cart I get the following error:
Error: Call to undefined method Error :: get (): Call to undefined method VirtueMartCart :: getCardCategoryId ()
and all the pages remained blank.
How can I solve?
Thanks
Joomla: 3.9.23
VirtueMart 3.8.6 10373


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

elanto75

Quote from: GJC Web Design on November 25, 2020, 16:46:42 PM
???  search?

Before opening a new post I did a search, the problem that in the file mod_virtuemart_cart / default.php I do not have the code that is mentioned

GJC Web Design

as explained in the posts .. you have "somewhere" a call to the function getCardCategoryId in an out of date extension or template, which now doesn't exist in VM..

Only you can find this as only you have access to your site files.. you can use GREP on the server to search for this string or download your likely site files ( vm related extensions and VM template files ) and search these or try with the standard template and/or disable extensions until you find it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

elanto75

Thanks, I found the call, I deleted it and everything started working fine again!
Resolved :)

GJC Web Design

It would be helpful to say where you found it for other users with this problem
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

elanto75

#7
Quote from: GJC Web Design on November 27, 2020, 13:41:30 PM
It would be helpful to say where you found it for other users with this problem

It was in a file of my template.
in ../plugins/system/

I replaced: $category_id = $this->_cart->getCardCategoryId($product->virtuemart_product_id);
with:   $category_id = $product->virtuemart_category_id;