• Resolved JaySkay

    (@tibia123)


    It’s giving mostly a lot of issues when WPloyalties coupons for free products are added to FunnelKit’s minicart or checkout. The coupons don’t apply properly, many errors, very long loading time etc

    [08-Jan-2025 00:56:17 UTC] PHP Warning: foreach() argument must be of type array|object, bool given in /home/sss22222/domains/xxxxxxx.cz/public_html/wp-content/plugins/wp-marketing-automations/includes/class-bwfan-common.php on line 3278

    Suggestions from ChatGPT

    Log the values of $items, $coupon_data, and $fees in the problematic function (get_abandoned_totals) to see how WPLoyalty is modifying the data. Add these logging lines just before the foreach loops:

    php

    error_log('Items: ' . print_r($items, true)); error_log('Coupon Data: ' . print_r($coupon_data, true)); error_log('Fees: ' . print_r($fees, true));

    This will output the data being passed to maybe_unserialize() in the debug log. By analyzing this, you can pinpoint what part of the data is invalid or incompatible.

Viewing 1 replies (of 1 total)
  • Plugin Support haripradeepa

    (@haripradeepa)

    Hello there,
    Thank you for reaching out to us. We are happy to assist you.

    After looking into the issue, it appears that the warning message was caused by the “wp-marketing-automations” plugin, not our WPLoyalty plugin.

    Please check with the respective plugin and let us know if you need any further help. We are always here to support you.

    If you have any other questions, please don’t hesitate to reach out. We would be more than happy to help.

    Have a great day!

    Thanks
    ?WPLoyalty Team

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