• Resolved cherrichic

    (@cherrichic)


    I need a fix please for this error.

    Notice: Undefined variable: cart_contains_subscription in /home/cherrich/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php on line 1887

    I’ve updated everything woocommerce and woocommerce shipping. I’m using php 8.3.14, Woocommerce 9.5.1

    Update: It appears to go away after I removed the pay with KLARNA option.

    • This topic was modified 3 months, 1 week ago by cherrichic.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Reynier (a11n)

    (@reynierc)

    Hi @cherrichic

    We appreciate you for reaching out and sharing your experience.

    Notice: Undefined variable: cart_contains_subscription in?/home/cherrich/public_html/wp-content/plugins/woocommerce-payments/includes/class-wc-payments.php?on line?1887

    To explain further: This error message means that the code is trying to use a variable called $cart_contains_subscription which hasn’t been set or defined before that point in the script. This specific issue happens within the WooCommerce Payments plugin file, class-wc-payments.php, at the specific line 1887. It can cause problems because the script expects that variable to contain some information that it needs to continue, but since it’s not defined, it can’t proceed as normal. It’s usually a sign that there could be an issue with the code or how different plugins are interacting with each other. If you’re not seeing other problems after removing the Klarna option, it seems that it was the source of the conflict.

    To move forward, please check for updates to the Klarna plugin or any other active plugins that might be conflicting with it. If the issue continues, please send us a System Status Report so we can further investigate your site’s setup for other potential causes. You may also want to drop a message or check their support forum here.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.