VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: thelake on November 28, 2022, 07:00:03 AM

Title: white page on shopping cart and notification
Post by: thelake on November 28, 2022, 07:00:03 AM
Joomla 4.2.5 with virtuemart 4.0.8 10748

Shopping cart show white page - no error reports, no debugs - simply nothing.

Notification message opens white pop up - the same: no content

anyone else the same?????

some ideas????
Title: Re: white page on shopping cart and notification
Post by: GJC Web Design on November 28, 2022, 10:10:43 AM
I assume u have debugging full up?

Server log?  Ran out of memory?
Title: Re: white page on shopping cart and notification
Post by: pinochico on November 28, 2022, 10:31:13 AM
install n3t Debug and write 500 error there:
https://bitbucket.org/n3t/n3t-debug/downloads/
Title: Re: white page on shopping cart and notification
Post by: jenkinhill on November 28, 2022, 12:26:26 PM
@pinochico    I send people here for n3t  https://extensions.joomla.org/extension/n3t-debug/   So they know it's a recognised Joomla extension.
Title: Re: white page on shopping cart and notification
Post by: thelake on November 29, 2022, 06:04:38 AM
Fatal error: Call to undefined method via call(): clear in /www/htdocs/w01aa2bc/domain.de/components/com_virtuemart/helpers/cart.php on line 787 in /www/htdocs/w01aa2bc/domain.de/libraries/vendor/joomla/input/src/Input.php on line 332

The Cart-Modul has to be deactivated to run the website..;-(
Title: Re: white page on shopping cart and notification
Post by: pinochico on November 29, 2022, 09:38:16 AM
which undefined method on line 787?
Title: Re: white page on shopping cart and notification
Post by: thelake on November 29, 2022, 13:40:50 PM
787:   $cartData = $cookie->clear('myCart');
Title: Re: white page on shopping cart and notification
Post by: thelake on November 29, 2022, 13:43:41 PM
   if (empty($contEncode)) {
         $cookie  = JFactory::getApplication()->input->cookie;
         $cartData = $cookie->clear('myCart');
      }

      $trace = debug_backtrace();
      trigger_error(
         'Call to undefined method via call(): ' . $name . ' in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'],
         E_USER_ERROR
      );
   }
Title: Re: white page on shopping cart and notification
Post by: thelake on November 30, 2022, 13:42:00 PM
Mittlerweile muss ich leider feststellen, dass der Shop sich komplett mit einer weissen Seite verabschiedet hat. Fehlermeldung auch bei ausgeschaltetem cart-modul und im Katalog-Modus

Fatal error: Call to undefined method via call(): clear in /www/htdocs/w01aa2bc/domain.de/components/com_virtuemart/helpers/cart.php on line 787 in /www/htdocs/w01aa2bc/domain.de/libraries/vendor/joomla/input/src/Input.php on line 332

Seit Ihr sicher dass das mit php8.1.7 Joomla 4.2.5 und virtuemart 4.0.8 10748 wirklich zusammenpasst?

Habe jetzt mal auf die Schnelle den Hikashop installiert - wollte aber nicht komplett umbauen..;-(

Wäre dann auch dringend - so vor Weihnachten....

Title: Re: white page on shopping cart and notification
Post by: Milbo on December 02, 2022, 21:49:42 PM
If you want to write in german, please use our german forum https://forum.virtuemart.de/

The used lines are really very standard. Actually we just added at the end the joomla way to delete a cookie.

$cookie  = JFactory::getApplication()->input->cookie;
$cartData = $cookie->clear('myCart');


We have even a tester who used php8.3, already. There will be a new release, very soon. But no one had this problem before. Tested since 2 weeks. But this fix should work

if (empty($contEncode)) {
$cookie  = JFactory::getApplication()->input->cookie;
if(method_exists($cookie, 'clear')){
$cartData = $cookie->clear('myCart');
}
}


And just, because you noticed. I wrote in the news and also in the forum that I do not recommend to use vm4 with j4.2. J4.2 added the mysql strict mode, which created a lot problems for us. and other problems.