Repository Forums Support WooCommerce Extended Coupon Features PRO Woocommerce Log: Discount Error (Not Initialized)

Topic Resolution: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #3005
    Jordan Spano


    I am receiving a barrage of Woocommerce status log errors, as below:

    WARNING woocommerce_coupon_get_discount_amount WJECF_Pro_Limit_Discount_Quantities::get_cart_item_discount_limit Function get_cart_item_discount_limit called, but cart_item_discount_limits was not yet initialized!

    As an avid debugger, I’d hope this is fixable by a code tweak.



    Can you give us some context please?

    When do you get that error? Are you using custom PHP? Please paste WC System Status Report.

    Jordan Spano

    My bad.

    Here’s a system status report: There is custom php in functions.php, but that is sundry. I’m assuming not everyone is getting this error for the current Woocommerce version?

    ### WordPress Environment ###
    Home URL:
    Site URL:
    WC Version: 3.3.5
    Log Directory Writable: ✔
    WP Version: 4.9.5
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    ### Server Environment ###
    Server Info: Apache
    PHP Version: 7.0.29
    PHP Post Max Size: 128 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    cURL Version: 7.53.0
    SUHOSIN Installed: –
    MySQL Version: 5.6.36
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    ### Database ###
    WC Database Version: 3.3.5
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 47.62MB
    Database Data Size: 33.38MB
    Database Index Size: 14.24MB
    wp_woocommerce_sessions: Data: 2.02MB + Index: 0.02MB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB
    wp_woocommerce_order_itemmeta: Data: 0.28MB + Index: 0.28MB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB
    wp_automatewoo_abandoned_carts: Data: 0.05MB + Index: 0.08MB
    wp_automatewoo_customers: Data: 0.16MB + Index: 0.28MB
    wp_automatewoo_events: Data: 0.02MB + Index: 0.05MB
    wp_automatewoo_guests: Data: 0.02MB + Index: 0.03MB
    wp_automatewoo_guest_meta: Data: 0.05MB + Index: 0.03MB
    wp_automatewoo_logs: Data: 0.02MB + Index: 0.05MB
    wp_automatewoo_log_meta: Data: 0.09MB + Index: 0.03MB
    wp_automatewoo_queue: Data: 0.02MB + Index: 0.05MB
    wp_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB
    wp_automatewoo_referrals: Data: 0.02MB + Index: 0.08MB
    wp_automatewoo_referral_advocate_keys: Data: 0.02MB + Index: 0.02MB
    wp_automatewoo_referral_invites: Data: 0.02MB + Index: 0.03MB
    wp_automatewoo_unsubscribes: Data: 0.02MB + Index: 0.06MB
    wp_cf_forms: Data: 0.02MB + Index: 0.02MB
    wp_cf_form_entries: Data: 0.02MB + Index: 0.06MB
    wp_cf_form_entry_meta: Data: 0.02MB + Index: 0.03MB
    wp_cf_form_entry_values: Data: 0.02MB + Index: 0.05MB
    wp_cf_pro_messages: Data: 0.02MB + Index: 0.00MB
    wp_cf_tracking: Data: 0.02MB + Index: 0.00MB
    wp_cf_tracking_meta: Data: 0.02MB + Index: 0.03MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.08MB + Index: 0.08MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_metaseo_images: Data: 0.02MB + Index: 0.00MB
    wp_newsletter: Data: 0.15MB + Index: 0.11MB
    wp_newsletter_emails: Data: 0.08MB + Index: 0.00MB
    wp_newsletter_sent: Data: 0.29MB + Index: 0.54MB
    wp_newsletter_stats: Data: 0.08MB + Index: 0.03MB
    wp_options: Data: 4.02MB + Index: 0.08MB
    wp_pmxe_exports: Data: 0.02MB + Index: 0.00MB
    wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB
    wp_pmxe_posts: Data: 0.02MB + Index: 0.00MB
    wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB
    wp_postmeta: Data: 2.27MB + Index: 2.95MB
    wp_posts: Data: 7.03MB + Index: 0.33MB
    wp_redirection_404: Data: 1.02MB + Index: 0.48MB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB
    wp_redirection_items: Data: 0.02MB + Index: 0.08MB
    wp_redirection_logs: Data: 0.02MB + Index: 0.08MB
    wp_sg_age_restriction_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_contact_form_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_countdown_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_exit_intent_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_fblike_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_html_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_iframe_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_image_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_popup_addons: Data: 0.02MB + Index: 0.02MB
    wp_sg_popup_addons_connection: Data: 0.02MB + Index: 0.00MB
    wp_sg_popup_in_pages: Data: 0.02MB + Index: 0.02MB
    wp_sg_popup_settings: Data: 0.02MB + Index: 0.00MB
    wp_sg_shortCode_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_social_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_subscribers: Data: 0.02MB + Index: 0.00MB
    wp_sg_subscription_error_log: Data: 0.02MB + Index: 0.00MB
    wp_sg_subscription_popup: Data: 0.02MB + Index: 0.00MB
    wp_sg_video_popup: Data: 0.02MB + Index: 0.00MB
    wp_shareasale_wc_tracker_datafeeds: Data: 0.02MB + Index: 0.00MB
    wp_shareasale_wc_tracker_logs: Data: 0.02MB + Index: 0.02MB
    wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB
    wp_spu_hits_logs: Data: 0.02MB + Index: 0.05MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.02MB + Index: 0.03MB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wp_usermeta: Data: 3.52MB + Index: 5.03MB
    wp_users: Data: 0.30MB + Index: 0.23MB
    wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB
    wp_wfBadLeechers: Data: 0.02MB + Index: 0.00MB
    wp_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB
    wp_wfBlockedIPLog: Data: 0.14MB + Index: 0.00MB
    wp_wfBlocks: Data: 0.02MB + Index: 0.02MB
    wp_wfBlocks7: Data: 0.02MB + Index: 0.05MB
    wp_wfBlocksAdv: Data: 0.02MB + Index: 0.00MB
    wp_wfConfig: Data: 1.50MB + Index: 0.00MB
    wp_wfCrawlers: Data: 0.02MB + Index: 0.00MB
    wp_wfFileChanges: Data: 0.02MB + Index: 0.00MB
    wp_wfFileMods: Data: 1.52MB + Index: 0.00MB
    wp_wfHits: Data: 1.02MB + Index: 0.22MB
    wp_wfHoover: Data: 0.02MB + Index: 0.02MB
    wp_wfIssues: Data: 0.02MB + Index: 0.06MB
    wp_wfKnownFileList: Data: 1.52MB + Index: 0.00MB
    wp_wfLeechers: Data: 0.06MB + Index: 0.00MB
    wp_wfLockedOut: Data: 0.02MB + Index: 0.00MB
    wp_wfLocs: Data: 0.02MB + Index: 0.00MB
    wp_wfLogins: Data: 0.02MB + Index: 0.03MB
    wp_wfNet404s: Data: 0.02MB + Index: 0.02MB
    wp_wfNotifications: Data: 0.02MB + Index: 0.00MB
    wp_wfPendingIssues: Data: 0.02MB + Index: 0.06MB
    wp_wfReverseCache: Data: 0.02MB + Index: 0.00MB
    wp_wfScanners: Data: 0.05MB + Index: 0.00MB
    wp_wfSNIPCache: Data: 0.02MB + Index: 0.05MB
    wp_wfStatus: Data: 0.13MB + Index: 0.09MB
    wp_wfThrottleLog: Data: 0.02MB + Index: 0.02MB
    wp_wfVulnScanners: Data: 0.02MB + Index: 0.00MB
    wp_woocommerce_extra_flat_rates: Data: 0.02MB + Index: 0.00MB
    wp_wplnst_scans: Data: 0.08MB + Index: 0.08MB
    wp_wplnst_scans_objects: Data: 0.02MB + Index: 0.05MB
    wp_wplnst_urls: Data: 0.13MB + Index: 0.28MB
    wp_wplnst_urls_locations: Data: 0.41MB + Index: 0.53MB
    wp_wplnst_urls_locations_att: Data: 0.02MB + Index: 0.06MB
    wp_wplnst_urls_status: Data: 1.50MB + Index: 0.52MB
    wp_wpms_links: Data: 1.52MB + Index: 0.00MB
    wp_yoast_seo_links: Data: 0.06MB + Index: 0.02MB
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB
    ### Post Type Counts ###
    attachment: 206
    authnet_credit_card: 27
    aw_workflow: 4
    boxzilla-box: 1
    customize_changeset: 1
    follow_up_email: 2
    lh-dashboard-note: 1
    mc4wp-form: 2
    nav_menu_item: 19
    oembed_cache: 1
    optionsframework: 4
    page: 29
    popup: 1
    popup_theme: 6
    post: 30
    product: 7
    product_variation: 3
    pt_view: 1
    revision: 452
    roundup: 1
    shop_coupon: 19
    shop_options: 1
    shop_order: 770
    shop_order_refund: 30
    spucpt: 3
    w4pl: 1
    was: 9
    wpsm_faq_r: 4
    ### Security ###
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    ### Active Plugins (23) ###
    WooCommerce added to cart popup (Ajax): by XootiX – 1.3 – Not tested with the active version of WooCommerce
    AfterShip - WooCommerce Tracking: by AfterShip – 1.8.4 – Not tested with the active version of WooCommerce
    Authorize.Net CIM for WooCommerce: by Cardpay Solutions
    Inc. – 2.0.2 – Not tested with the active version of WooCommerce
    Caldera Forms: by Caldera Labs – 1.6.0
    Google XML Sitemaps: by Arne Brachhold – 4.0.9
    iDevAffiliate WooCommerce Integration: by LLC – 1.1 – Not tested with the active version of WooCommerce
    Pepperjam Pixel: by Brad Cavanaugh  – 1.0.8 – Not tested with the active version of WooCommerce
    Popups Premium Plugin: by Damian Logghe – 1.9.3
    Popups - WordPress Popup: by Damian Logghe –
    Redirection: by John Godley – 3.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.0.2
    ShareASale WooCommerce Tracker: by
    Inc. – 1.3.7
    User Switching: by John Blackbourn – 1.3.0
    W3 Total Cache: by Frederick Townes – 0.9.6
    WC Password Strength Settings: by Daniel Santoro – 2.0.2
    WooCommerce Advanced Shipping: by Jeroen Sormani – 1.0.12 – Not tested with the active version of WooCommerce
    WooCommerce Extended Coupon Features PRO: by Soft79 – 2.5.4 – Not tested with the active version of WooCommerce
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.1.6
    WooCommerce Product Reviews Pro: by SkyVerge – 1.11.0
    WooCommerce: by Automattic – 3.3.5
    Wordfence Security: by Wordfence – 7.1.2
    Yoast SEO: by Team Yoast – 7.2
    WP Smush: by WPMU DEV – 2.7.8
    ### Settings ###
    API Enabled: ✔
    Force SSL: ✔
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    ### WC Pages ###
    Shop base: #1885 - /shop/
    Cart: #1886 - /cart/
    Checkout: #1887 - /checkout/
    My account: #1888 - /my-account/
    Terms and conditions: ❌ Page not set
    ### Theme ###
    Name: Herbal Nitro
    Version: 2.5.3
    Author URL:
    Child Theme: ✔
    Parent Theme Name: Genesis
    Parent Theme Version: 2.6.1
    Parent Theme Author URL:
    WooCommerce Support: ✔
    ### Templates ###
    Overrides: HN/woocommerce/cart/cart-shipping.php

    First try updating to the latest version. Enter your licence info on the settings page of our plugin to receive automatic updates.


    I see you have mutiple warnings on frontend. Tip: disable WP_DEBUG_DISPLAY and enable WP_DEBUG_LOG .


    Is this solved?

    Jordan Spano

    Oy, mate. I forgot about this form.

    I was involved in the debugging (THANK YOU for showing me those wp-config functions. They helped a bunch.)

    I don’t see the error log showin’ anymore. Perhaps it was old from the get-go (heh).

    Please close. Thanks a bunch, Keymaster.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.