• Resolved edwardsmark

    (@edwardsmark)


    hi – i hate to be the bearer of bad news, but when i upgraded simple-shopping-cart to “Version 5.1.5” i get the following ‘love note’…

    [Wed Jul 23 15:46:45.773153 2025] [proxy_fcgi:error] [pid 116363:tid 140374983022336] [client 99.169.172.33:51482] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Cannot unpack array with string keys in /home/ajcomptonpesl.com/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/includes/wpsc-shortcodes-related.php:160\nStack trace:\n#0 /home/ajcomptonpesl.com/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart_shortcodes.php(131): print_wp_cart_button_for_product()\n#1 /home/ajcomptonpesl.com/public_html/wp-includes/shortcodes.php(434): wpsc_cart_display_product_handler()\n#2 [internal function]: do_shortcode_tag()\n#3 /home/ajcomptonpesl.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback()\n#4 /home/ajcomptonpesl.com/public_html/wp-includes/class-wp-hook.php(324): do_shortcode()\n#5 /home/ajcomptonpesl.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#6 /home/ajcomptonpesl.com/public_html/wp-includes/post-template.php(256): apply_filters()\n#7 /home/ajcomptonpesl.com/public_html/wp-content/themes/astra/template-parts/single/con…’, referer: https://ajcomptonpesl.com/wp-admin/post.php?post=22&action=elementor

    (better a nice guy like me find it than a bad person….)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thank you. We will investigate this. Can you also share the exact shortcode (or shortcodes that you are using)?

    Thread Starter edwardsmark

    (@edwardsmark)

    sure, here is one of 30+

    [wp_cart_display_product
    description="one-time special for first-time purchasers – please allow up to 24-72
    hours for authorization e-mail"
    item_number="4121"
    name="Introductory Rate for first client"
    price="6.00"
    thumbnail="//about:blank"
    ]

    pls feel free to send me a special script littered with error_log() statements if necessary. sorry old school guy here…..

    Thread Starter edwardsmark

    (@edwardsmark)

    fixed:

    /../wp-content/plugins/wordpress-simple-paypal-shopping-cart/includes/wpsc-shortcodes-related.php:160

                array_merge($variations)        //...$variations  2025-07-23

    per: https://php.watch/versions/8.1/spread-operator-string-array-keys

    Thank you. This issue appears to be related to an older PHP version. We’ve updated the code to ensure compatibility with PHP 7.4. However, please note that in the future, we will likely raise the minimum PHP requirement to PHP 8.1. We recommend planning to upgrade your server’s PHP version accordingly.

    Thread Starter edwardsmark

    (@edwardsmark)

    thank you, fixed.

    its sort of embarrassing to learn your PHP is obsolete on a public forum. but at least i am among friends😳.

    It’s quite common for websites to run on an older version of PHP. Many hosting providers don’t offer upgrades proactively, and you often have to request it yourself. So there’s nothing to be embarrassed about.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.