• Since yesterday, I’ve been getting this error message:
    PHP Warning:  Undefined property: stdClass::$line_total in /httpdocs/wp-content/plugins/woocommerce-abandoned-cart/cron/class-wcal-cron.php on line 544

    According to AI:

    In wcal_check_cart_total() the code loops through the cart items and reads $v->line_total for each item. Some cart items in the database (often old or incomplete abandoned carts, for example cart items that have been saved without complete WooCommerce data, or an empty/corrupted item) do not have a line_total property. PHP then issues a warning because you are attempting to read a non-existent property. The script does not crash as a result (the warning is not fatal), but it clutters up your logs considerably if this happens on every cron run.

    The fix: Add an isset()check so that the warning no longer occurs.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @peterleenders,

    Sorry for the inconvenience, and thank you for sharing the error message and the details.

    Could you please let us know what actions you performed on the site before this warning appeared? If possible, please share the steps you followed or the exact scenario in which you noticed the error.

    This will help us reproduce the issue on our end and investigate it further to determine the appropriate fix.

    We look forward to your reply.

    Thread Starter Peter Leenders

    (@peterleenders)

    I haven’t done anything. At least, I wouldn’t know what I was supposed to have done. These notifications just started popping up out of the blue.

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @peterleenders,

    Thank you for confirming.

    Could you please email us at support at tychesoftwares dot com so we can continue this discussion through our private support system? This will allow us to gather any additional details or logs required and investigate the issue more efficiently.

    Please mention this forum topic in your email so we can quickly identify the issue and continue from there.

    We’ll be happy to assist you further.

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

You must be logged in to reply to this topic.