• Resolved samuelb505

    (@samuelb505)


    I’m experiencing a fatal error with the WooCommerce Abandoned Cart plugin when a product is added to the cart. The error logged is:

    PHP Fatal error: Cannot access offset of type string on string in /wp-content/plugins/woocommerce-abandoned-cart/woocommerce-ac.php on line 2191

    This happens immediately after a product is added to the cart, and it is also preceded by several warnings like:

    PHP Warning: Undefined array key “product_id”
    PHP Warning: Undefined array key “variation_id”
    PHP Warning: Undefined array key “quantity”

    From what I’ve checked, it seems that the code at that line is trying to access keys such as ['product_id'] on a variable that is still a JSON string, and hasn’t been decoded into a PHP array yet. This is what causes the fatal error when treating a string as an array.


    Plugin version: 6.4.0

    WordPress version: 6.8.1

    Elementor version: 3.29.2 

    • This topic was modified 11 months, 2 weeks ago by samuelb505.
    • This topic was modified 11 months, 2 weeks ago by samuelb505.
Viewing 1 replies (of 1 total)
  • Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @samuelb505,

    Sorry for the inconvenience caused to you due to this error.

    Thank you for sharing the error message with us.

    I tried to replicate this error on our end, but I am unable to replicate the same. Could you please drop us an email at ‘support at tychesoftwares dot freshdesk dot com’ regarding this issue? We will discuss this issue in detail there on our ticketing system and work towards a resolution.

    Looking forward to hearing back from you.

Viewing 1 replies (of 1 total)

The topic ‘Error Cannot access offset of type string on string in new WordPress version’ is closed to new replies.