Author Topic: Error in PHP 8.1 because of clearcart=0 in the menu URL  (Read 277 times)

l_hendriksen

  • Beginner
  • *
  • Posts: 3
  • A beginner
Error in PHP 8.1 because of clearcart=0 in the menu URL
« 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?


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28456
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.12 10777  J 3.10.11 PHP 7.4.30

l_hendriksen

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: Error in PHP 8.1 because of clearcart=0 in the menu URL
« Reply #2 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 :-(