News:

Looking for documentation? Take a look on our wiki

Main Menu

white page on shopping cart and notification

Started by thelake, November 28, 2022, 07:00:03 AM

Previous topic - Next topic

thelake

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????

GJC Web Design

I assume u have debugging full up?

Server log?  Ran out of memory?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

jenkinhill

@pinochico    I send people here for n3t  https://extensions.joomla.org/extension/n3t-debug/   So they know it's a recognised Joomla extension.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

thelake

#4
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..;-(

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

thelake

787:   $cartData = $cookie->clear('myCart');

thelake

   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
      );
   }

thelake

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....


Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/