5.2.4 bug: Blank screen after after modified qty
-
Since a few days,
Problem:
- Add item to cart
- Go to cart page
- Increase quantity to 2 with arrows
- Page reloads
- Blank screen on some computers, not all computers
With DEBUG mode:
Warning: foreach() argument must be oftypearray|object,falsegivenin/home/xxxxx/web/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 357Fatal error: Uncaught TypeError:sort(): Argument#1 ($array) must be of type array, false given in /home/xxxxx/web/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php:366 Stack trace: #0 /home/xxxxx/web/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php(366): sort(false) #1 /home/xxxxx/web/wp-content/plugins/wordpress-simple-paypal-shopping-cart/includes/wpsc-misc-functions.php(16): wpsc_cart_actions_handler() #2 /home/xxxxx/web/wp-includes/class-wp-hook.php(341): wp_cart_init_handler('') #3 /home/xxxxx/web/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #4 /home/xxxxx/web/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #5 /home/xxxxx/web/wp-settings.php(742): do_action('init') #6 /home/lespassik/web/wp-config.php(109): require_once('/home/xxxxx...') #7 /home/xxxxx/web/wp-load.php(50): require_once('/home/xxxxx...') #8 /home/xxxxx/web/wp-blog-header.php(13): require_once('/home/xxxxx...') #9 /home/xxxxx/web/index.php(17): require('/home/xxxxx...') #10 {main} thrown in /home/xxxxx/web/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 366And in apache log: 500 error code …
93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:34 +0100]"POST /fr/boutique/panier/ HTTP/1.1"500 2621"https://www.les-passions.fr/fr/boutique/panier/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:35 +0100]"GET /favicon.ico HTTP/1.1"302 -"https://www.les-passions.fr/fr/boutique/panier/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:41 +0100]"GET /fr/boutique/panier/ HTTP/1.1"200 20366"https://www.les-passions.fr/fr/product/coffret-jean-gilles/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:45 +0100]"GET /fr/boutique/ HTTP/1.1"200 23271"https://www.les-passions.fr/fr/boutique/panier/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:49 +0100]"GET /fr/product/coffret-jean-gilles/ HTTP/1.1"200 25271"https://www.les-passions.fr/fr/boutique/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:54 +0100]"POST /fr/product/coffret-jean-gilles/ HTTP/1.1"302 -"https://www.les-passions.fr/fr/product/coffret-jean-gilles/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:55 +0100]"GET /fr/boutique/panier/ HTTP/1.1"200 22054"https://www.les-passions.fr/fr/product/coffret-jean-gilles/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"93.8.28.204 www.les-passions.fr - [11/Dec/2025:09:02:59 +0100]"POST /fr/boutique/panier/ HTTP/1.1"500 2621"https://www.les-passions.fr/fr/boutique/panier/""Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0"Simple Shopping Cart Version 5.2.4
WordPress 6.9It worked perfectly a few weeks ago.
I have added these lines to wp_shopping_cart.php after line 356:
$products = $wpsc_cart->get_items();
if (!$products) {
wp_die(‘Erreur inatendue, maintenance en cours…’);
}Thanks in advance
The page I need help with: [log in to see the link]
The topic ‘5.2.4 bug: Blank screen after after modified qty’ is closed to new replies.