News:

Support the VirtueMart project and become a member

Main Menu

Payment Processing error after upgrade to 4

Started by tetemen, February 24, 2023, 20:28:41 PM

Previous topic - Next topic

tetemen

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,


jenkinhill

"upgrade to 4"   What is upgraded to "4"  VM or Joomla? Or both?  Please provide exact J&VM versions.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

tetemen

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,