VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: l_hendriksen on December 10, 2022, 13:10:12 PM

Title: Error in PHP 8.1 because of clearcart=0 in the menu URL
Post by: l_hendriksen on December 10, 2022, 13:10:12 PM
Can someone help me with the clearcart=0 which is added to the URL. My provider wants all websites to go to PHP 8.1 since the websites are still on 7.4 and that clearcart is giving me a problem.

I have two websites with both Joomla 3.10.11 and VirtueMart 4.0.6 10690

The link in the first website is like this:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=172&virtuemart_manufacturer_id=0

And the other one is like this:
index.php?option=com_virtuemart&view=category&virtuemart_category_id=9&virtuemart_manufacturer_id=0&clearCart=0

They are both operating fine with PHP 7.4 but once I switch to PHP 8.1 then the first keeps operating fine while the other website (with the clearcart in the link) throws this error: Unknown named parameter $title

Does anyone know which setting in VirtueMart is causing it to be added to the link?

Title: Re: Error in PHP 8.1 because of clearcart=0 in the menu URL
Post by: jenkinhill on December 10, 2022, 13:33:17 PM
Try http://dev.virtuemart.net/attachments/download/1355/com_virtuemart.4.0.10.10767_package_or_extract.zip
Title: Re: Error in PHP 8.1 because of clearcart=0 in the menu URL
Post by: l_hendriksen on December 11, 2022, 09:56:42 AM
Thanks. It do not see the clearcart anymore in the link. But it hasn't solved my initial problem with PHP upgrade.

Also when I add a new menu item it is again in the link.

I will have to dig deeper :-(