VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: tetemen on February 24, 2023, 20:28:41 PM

Title: Payment Processing error after upgrade to 4
Post by: tetemen on February 24, 2023, 20:28:41 PM
Hello
I am having an issue with the payment plugin file vmpsplugin.php file

When the callback function is called from the payment gateway, the gateway triggers this error on my site:


File: /administrator/components/com_virtuemart/plugins/vmpsplugin.php
Line: 1506
Error: Class "JSessionStorage" not found


The only documentation I found on the session storage shows that is is a deprecated function (https://api.joomla.org/cms-3/classes/JSessionStorage.html)

When I bypass the content of the function emptyCartFromStorageSession (line1498) with a "return;" command on line 1499, the payment gateway triggers no error on the site and the transaction is complete. I do not want to bypass this function as it "recovers the session from Storage, and only empty the cart if it has not been done already".

I'd be glad if anyone could show me how I can fix this.

Best Regards,

Title: Re: Payment Processing error after upgrade to 4
Post by: jenkinhill on February 25, 2023, 11:20:02 AM
"upgrade to 4"   What is upgraded to "4"  VM or Joomla? Or both?  Please provide exact J&VM versions.
Title: Re: Payment Processing error after upgrade to 4
Post by: tetemen on February 25, 2023, 14:38:50 PM
Yeah, sorry I forgot to mention the exact versions.
The site is currently running on the latest versions which are:
Joomla 4.0.28
PHP 8.0.28
Virtuemart 4.0.12.10777

Thank you,