VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Way2exhale on November 14, 2013, 11:51:50 AM

Title: Fatal Error Encountered After VM Updated
Post by: Way2exhale on November 14, 2013, 11:51:50 AM
Hi everyone:

I recently updated my VirtueMart from 2.0.22c to 2.0.24

Now I am encountered with this error message when I view the shopping cart, whether there is/not any product in the cart.

Fatal error: Call to undefined method plgVmPaymentPaypal::convert_condition_amount() in /home/content/40/11946240/html/plugins/vmpayment/paypal/paypal.php on line 887

My paypal account is in test mode and prior to this error message I was receiving customer receipts and vendor emails for test purchases. Now I am getting this error message and not sure what to do. I have been searching and reading like topics but I am not able to find any issues that can help me resolve my issue.

My website is still in development mode and close to completion. 

VM: 2.0.24
Joomla 2.5.16
PHP: 5.3.24
Title: Re: Fatal Error Encountered After VM Updated
Post by: GJC Web Design on November 14, 2013, 13:41:53 PM
did you also upgrade your VM AIO to v2.0.24?
Title: Re: Fatal Error Encountered After VM Updated
Post by: Way2exhale on November 14, 2013, 20:02:31 PM
Yes, I updated the "aio" from the Joomla Admin Panel

However, my VM Control Panel indicates I need to update the same file (this is confusing) do I still need to download this file?



[attachment cleanup by admin]
Title: Re: Fatal Error Encountered After VM Updated
Post by: GJC Web Design on November 14, 2013, 20:45:28 PM
How did u update to VM2.0.24?

live update gets the current version from administrator/components/com_virtuemart/virtuemart.xml

My server resolutely refuses to update VM via the Joomla installer so I do it by just expanding the zips in the components but always forget to upload the virtuemart.xml (till I remember again  ;))

also in VM tools have you clicked  "install or if necessary update tables  " - this runs all the fixes in administrator/components/com_virtuemart/install/script.virtuemart.php which won't have run if you manually updated.
Title: Re: Fatal Error Encountered After VM Updated
Post by: Way2exhale on November 14, 2013, 21:28:35 PM
Hi GJC:

To update the VM2.0.24 I just clicked on the link "update VM plugin tables" see pic it indicates that I have updated the database. After clicking the update link I just  selected my cart and now it is working again. Mmm ??? I thought I had updated the plugin tables earlier?

I have not clicked "install or update the tables from VM Tools. Which is probably why I have the indicator to update in my control panel. Should I go ahead and download and install from here too?

[attachment cleanup by admin]
Title: Re: Fatal Error Encountered After VM Updated
Post by: GJC Web Design on November 14, 2013, 21:36:14 PM
The normal way to update is to download the latest zip from VM  - unpack and there are 2 zips - one the component and one the AIO
Back up everything!
Install both these as normal Joomla installs while holding your breath...

then in AIO click the update tables and in VM tools click "install or if necessary update tables"

These run a small script in both (if present) that does any updates to tables that may be nesscesary - I does no harm to click them and would advise always to do so after an update

One last point after updates (Joomla) that is often missed is to update any Joomla tables with Extensions->Extensions Manager->Database
Title: Re: Fatal Error Encountered After VM Updated
Post by: Way2exhale on November 14, 2013, 21:54:38 PM
oh!  :-[ How do I back up everything?
Title: Re: Fatal Error Encountered After VM Updated
Post by: GJC Web Design on November 14, 2013, 22:28:22 PM
you should never update a live site without a full backup - I personally always clone the site - backup - test - fix - transfer to live

Akeeba backup
Title: Re: Fatal Error Encountered After VM Updated
Post by: Way2exhale on November 14, 2013, 22:31:57 PM
Perfect,
I truly appreciate your advice and support. I will now backup and update VM as suggested.  :)