VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: EIF on November 13, 2024, 14:12:31 PM

Title: Fatal error after return to shop after payment (attempt) when show order
Post by: EIF on November 13, 2024, 14:12:31 PM
I just update a shop to Joomla 5.2.1 and VM 4.4, running on PHP 8.2.

When a customer want to pay the order, the used payment plugin links to the payment provider. When the payment is canceled, the customer gets back to shop with a 'thank you for your order' page. (the same as when the payment was succesful)

There on that page is a button to show the order details. When clicking on it, a fatal error appears:

"Cannot access offset of type string on string" 0-error 0.

Using a fatal error catch plugin, it turns out the problem is in file:

../public_html/libraries/src/HTML/HTMLHelper.php:763

Anyone a idea how to solve this?
Title: Re: Fatal error after return to shop after payment (attempt) when show order
Post by: EIF on November 13, 2024, 16:21:21 PM
Solved it. Well, not really, but it is a template issue. When not using the template, it works.
Title: Re: Fatal error after return to shop after payment (attempt) when show order
Post by: AH on November 22, 2024, 14:24:57 PM
Thanks for the update