Support » Plugin: WooCommerce Extended Coupon Features FREE » WARNING Division by zero

  • Hey,

    This happened yesterday:

    WARNING Division by zero

    {
    "error": {
        "errno": 2,
        "errstr": "Division by zero",
        "errfile": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/templates\/coupon-select-free-product.php",
        "errline": 51
    },
    "backtrace": [{
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/templates\/coupon-select-free-product.php",
        "lineNumber": 51,
        "arguments": ["\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/templates\/coupon-select-free-product.php"],
        "applicationFrame": true,
        "method": "include",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/pro\/class-wjecf-pro-controller.php",
        "lineNumber": 327,
        "arguments": ["coupon-select-free-product.php", {
            "coupon": {},
            "coupon_code": "shred",
            "allow_multiple_products": false,
            "form_items": [],
            "selected_quantity": 0,
            "max_quantity": 1,
            "name_prefix": "wjecf_free_sel[0]",
            "id_prefix": "wjecf_free_sel_0",
            "totalizer_id": "wjecf_free_sel_0_total_qty",
            "template": {}
        }],
        "applicationFrame": true,
        "method": "include_template",
        "class": "WJECF_Pro_Controller"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/pro\/plugins\/WJECF_Pro_Free_Products\/class-wjecf-pro-free-products-template.php",
        "lineNumber": 157,
        "arguments": ["coupon-select-free-product.php", {
            "coupon": {},
            "coupon_code": "shred",
            "allow_multiple_products": false,
            "form_items": [],
            "selected_quantity": 0,
            "max_quantity": 1,
            "name_prefix": "wjecf_free_sel[0]",
            "id_prefix": "wjecf_free_sel_0",
            "totalizer_id": "wjecf_free_sel_0_total_qty"
        }],
        "applicationFrame": true,
        "method": "render_template",
        "class": "WJECF_Pro_Free_Products_Template"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/templates\/checkout\/select-free-product.php",
        "lineNumber": 47,
        "arguments": ["\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/templates\/checkout\/select-free-product.php"],
        "applicationFrame": true,
        "method": "include",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/pro\/class-wjecf-pro-controller.php",
        "lineNumber": 327,
        "arguments": ["checkout\/select-free-product.php", {
            "free_gift_coupons": [{}],
            "coupons_form_data": {
                "shred": {
                    "coupon": {},
                    "coupon_code": "shred",
                    "allow_multiple_products": false,
                    "form_items": [],
                    "selected_quantity": 0,
                    "max_quantity": 1,
                    "name_prefix": "wjecf_free_sel[0]",
                    "id_prefix": "wjecf_free_sel_0",
                    "totalizer_id": "wjecf_free_sel_0_total_qty"
                }
            },
            "template": {}
        }],
        "applicationFrame": true,
        "method": "include_template",
        "class": "WJECF_Pro_Controller"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/pro\/plugins\/WJECF_Pro_Free_Products\/class-wjecf-pro-free-products-template.php",
        "lineNumber": 157,
        "arguments": ["checkout\/select-free-product.php", {
            "free_gift_coupons": [{}],
            "coupons_form_data": {
                "shred": {
                    "coupon": {},
                    "coupon_code": "shred",
                    "allow_multiple_products": false,
                    "form_items": [],
                    "selected_quantity": 0,
                    "max_quantity": 1,
                    "name_prefix": "wjecf_free_sel[0]",
                    "id_prefix": "wjecf_free_sel_0",
                    "totalizer_id": "wjecf_free_sel_0_total_qty"
                }
            }
        }],
        "applicationFrame": true,
        "method": "render_template",
        "class": "WJECF_Pro_Free_Products_Template"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce-auto-added-coupons-pro\/pro\/plugins\/WJECF_Pro_Free_Products\/WJECF_Pro_Free_Products.php",
        "lineNumber": 228,
        "arguments": [""],
        "applicationFrame": true,
        "method": "render_checkout_select_free_product",
        "class": "WJECF_Pro_Free_Products"
    }, {
        "file": "\/path\/to\/wp-includes\/class-wp-hook.php",
        "lineNumber": 292,
        "arguments": ["", [""]],
        "applicationFrame": true,
        "method": "apply_filters",
        "class": "WP_Hook"
    }, {
        "file": "\/path\/to\/wp-includes\/class-wp-hook.php",
        "lineNumber": 316,
        "arguments": [
            [""]
        ],
        "applicationFrame": true,
        "method": "do_action",
        "class": "WP_Hook"
    }, {
        "file": "\/path\/to\/wp-includes\/plugin.php",
        "lineNumber": 484,
        "arguments": ["woocommerce_checkout_before_customer_details"],
        "applicationFrame": true,
        "method": "do_action",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/themes\/enhanced\/woocommerce\/checkout\/form-checkout.php",
        "lineNumber": 47,
        "arguments": ["\/path\/to\/wp-content\/themes\/enhanced\/woocommerce\/checkout\/form-checkout.php"],
        "applicationFrame": true,
        "method": "include",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php",
        "lineNumber": 345,
        "arguments": ["checkout\/form-checkout.php", {
            "checkout": {}
        }],
        "applicationFrame": true,
        "method": "wc_get_template",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce\/includes\/shortcodes\/class-wc-shortcode-checkout.php",
        "lineNumber": 293,
        "arguments": [],
        "applicationFrame": true,
        "method": "checkout",
        "class": "WC_Shortcode_Checkout"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce\/includes\/shortcodes\/class-wc-shortcode-checkout.php",
        "lineNumber": 67,
        "arguments": [""],
        "applicationFrame": true,
        "method": "output",
        "class": "WC_Shortcode_Checkout"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce\/includes\/class-wc-shortcodes.php",
        "lineNumber": 72,
        "arguments": [
            ["WC_Shortcode_Checkout", "output"], ""
        ],
        "applicationFrame": true,
        "method": "shortcode_wrapper",
        "class": "WC_Shortcodes"
    }, {
        "file": "\/path\/to\/wp-content\/plugins\/woocommerce\/includes\/class-wc-shortcodes.php",
        "lineNumber": 95,
        "arguments": ["", "", "woocommerce_checkout"],
        "applicationFrame": true,
        "method": "checkout",
        "class": "WC_Shortcodes"
    }, {
        "file": "\/path\/to\/wp-includes\/shortcodes.php",
        "lineNumber": 343,
        "arguments": [
            ["[woocommerce_checkout]", "", "woocommerce_checkout", "", "", "", ""]
        ],
        "applicationFrame": true,
        "method": "do_shortcode_tag",
        "class": null
    }, {
        "file": "unknown",
        "lineNumber": 0,
        "arguments": ["\/\\[(\\[?)(woocommerce_checkout)(?![\\w-])([^\\]\\\/]*(?:\\\/(?!\\])[^\\]\\\/]*)*?)(?:(\\\/)\\]|\\](?:([^\\[]*+(?:\\[(?!\\\/\\2\\])[^\\[]*+)*+)\\[\\\/\\2\\])?)(\\]?)\/", "do_shortcode_tag", "[woocommerce_checkout]\n"],
        "applicationFrame": true,
        "method": "preg_replace_callback",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/shortcodes.php",
        "lineNumber": 218,
        "arguments": ["[woocommerce_checkout]\n"],
        "applicationFrame": true,
        "method": "do_shortcode",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/class-wp-hook.php",
        "lineNumber": 292,
        "arguments": ["[woocommerce_checkout]\n", ["[woocommerce_checkout]\n"]],
        "applicationFrame": true,
        "method": "apply_filters",
        "class": "WP_Hook"
    }, {
        "file": "\/path\/to\/wp-includes\/plugin.php",
        "lineNumber": 212,
        "arguments": ["the_content", "<!-- wp:shortcode -->\r\n<p>[woocommerce_checkout]<\/p>\r\n<!-- \/wp:shortcode -->"],
        "applicationFrame": true,
        "method": "apply_filters",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/post-template.php",
        "lineNumber": 253,
        "arguments": [],
        "applicationFrame": true,
        "method": "the_content",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/themes\/enhanced\/templates\/content-page.php",
        "lineNumber": 1,
        "arguments": ["\/path\/to\/wp-content\/themes\/enhanced\/templates\/content-page.php"],
        "applicationFrame": true,
        "method": "require",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/template.php",
        "lineNumber": 732,
        "arguments": ["\/path\/to\/wp-content\/themes\/enhanced\/templates\/content-page.php", false, []],
        "applicationFrame": true,
        "method": "load_template",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/template.php",
        "lineNumber": 676,
        "arguments": [
            ["templates\/content-page.php", "templates\/content.php"], true, false, []
        ],
        "applicationFrame": true,
        "method": "locate_template",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/general-template.php",
        "lineNumber": 204,
        "arguments": ["templates\/content", "page"],
        "applicationFrame": true,
        "method": "get_template_part",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/themes\/enhanced\/page.php",
        "lineNumber": 3,
        "arguments": ["\/path\/to\/wp-content\/themes\/enhanced\/page.php"],
        "applicationFrame": true,
        "method": "include",
        "class": null
    }, {
        "file": "\/path\/to\/wp-content\/themes\/enhanced\/base.php",
        "lineNumber": 20,
        "arguments": ["\/path\/to\/wp-content\/themes\/enhanced\/base.php"],
        "applicationFrame": true,
        "method": "include",
        "class": null
    }, {
        "file": "\/path\/to\/wp-includes\/template-loader.php",
        "lineNumber": 106,
        "arguments": ["\/path\/to\/wp-includes\/template-loader.php"],
        "applicationFrame": true,
        "method": "require_once",
        "class": null
    }, {
        "file": "\/path\/to\/wp-blog-header.php",
        "lineNumber": 19,
        "arguments": ["\/path\/to\/wp-blog-header.php"],
        "applicationFrame": true,
        "method": "require",
        "class": null
    }, {
        "file": "\/path\/to\/index.php",
        "lineNumber": 17,
        "arguments": [],
        "applicationFrame": false,
        "method": "[top]",
        "class": null
    }]
    }
Viewing 1 replies (of 1 total)
  • Plugin Author Soft79

    (@josk79)

    Please, use the forum at soft79.nl for PRO support.

    Please make sure the free products are purchasable (must be public and have a price).

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