VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: theictshak on September 29, 2023, 06:21:19 AM

Title: error on php 8.2 - VM 4,20
Post by: theictshak on September 29, 2023, 06:21:19 AM
We have started to update our sites to PHP 8.2 and VM 4.20 and I am getting the following error

PHP Deprecated:  Creation of dynamic property VirtueMartCart::$confirmDone is deprecated in components/com_virtuemart/helpers/cart.php on line 110

Is this coming from the template, or from VirtueMart, can anyone advise how we can fix this.
Title: Re: error on php 8.2 - VM 4,20
Post by: ssc3 on September 29, 2023, 10:38:25 AM
The "PHP Deprecated" error means the code should work as expected in PHP 8.2 but may not work in future versions of PHP.

You are most likely seeing this because your error reporting is set to maximum.

In the short term, if it is not causing a problem set the error reporting back to normal. Though in the long term term the code

will need updating.
Title: Re: error on php 8.2 - VM 4,20
Post by: Milbo on October 05, 2023, 20:08:25 PM
Or buy a membership https://extensions.virtuemart.net/support/virtuemart-supporter-membership-bronze-detail then you get the updated code without this error
Title: Re: error on php 8.2 - VM 4,20
Post by: ssnobben on October 07, 2023, 12:12:06 PM
Quote from: Milbo on October 05, 2023, 20:08:25 PM
Or buy a membership https://extensions.virtuemart.net/support/virtuemart-supporter-membership-bronze-detail then you get the updated code without this error

:)