• Resolved RashaMatt

    (@rashamatt)


    After installing “Smart Coupons for WooCommerce” (v1.1.2) I see the following PHP errors when attempting to edit a coupon as admin:

    [05-May-2019 05:04:43 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in    wp-content/plugins/wt-smart-coupons-for-woocommerce/admin/class-wt-smart-coupon-admin.php on line 226
    [05-May-2019 05:04:44 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in    wp-content/plugins/wt-smart-coupons-for-woocommerce/admin/class-wt-smart-coupon-admin.php on line 257
    [05-May-2019 05:04:44 UTC] PHP Warning:  in_array() expects parameter 2 to be array, string given in    wp-content/plugins/wt-smart-coupons-for-woocommerce/admin/class-wt-smart-coupon-admin.php on line 287

    I resolved these errors by editing the class-wt-smart-coupon-admin.php source file, adding checks in each case to skip the loop if the (supposed) array variable tests false.

    • This topic was modified 5 years, 7 months ago by RashaMatt.
    • This topic was modified 5 years, 7 months ago by RashaMatt.
    • This topic was modified 5 years, 7 months ago by RashaMatt.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP errors in class-wt-smart-coupon-admin.php’ is closed to new replies.