not working, úncaught type error

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #125521
    jochen
    Participant

    Hi,

    I just activated the plugin on my new staging site. However, it is not working, as I can see a Fatal Error

    Any idea?
    Thanks jochen

    <b>Fatal error</b>: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, WP_Error given in /var/www/clients/client4807/web15042/new2023/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/pro/class-alg-wc-pq-pro.php:263 Stack trace: #0 /var/www/clients/client4807/web15042/new2023/wp-includes/class-wp-hook.php(310): Alg_WC_PQ_Pro->quantity_step_per_product_cat_value(0, 13079) #1 /var/www/clients/client4807/web15042/new2023/wp-includes/plugin.php(205): WP_Hook->apply_filters(0, Array) #2 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php(1892): apply_filters('alg_wc_pq_quant...', 0, 13079) #3 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php(1918): Alg_WC_PQ_Core->get_product_qty_step(13079, 1) #4 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php(1764): Alg_WC_PQ_Core->set_quantity_input_step(1, Object(WC_Product_Simple)) #5 /var/www/clients/client4807/web15042/new2023/wp-includes/class-wp-hook.php(310): Alg_WC_PQ_Core->set_quantity_input_args(Array, Object(WC_Product_Simple)) #6 /var/www/clients/client4807/web15042/new2023/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #7 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1817): apply_filters('woocommerce_qua...', Array, Object(WC_Product_Simple)) #8 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/simple.php(38): woocommerce_quantity_input(Array) #9 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/var/www/client...') #10 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1711): wc_get_template('single-product/...') #11 /var/www/clients/client4807/web15042/new2023/wp-includes/class-wp-hook.php(310): woocommerce_simple_add_to_cart('') #12 /var/www/clients/client4807/web15042/new2023/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #13 /var/www/clients/client4807/web15042/new2023/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1702): do_action('woocommerce_sim...') #15 /var/www/clients/client4807/web15042/new2023/wp-includes/class-wp-hook.php(310): woocommerce_template_single_add_to_cart('') #16 /var/www/clients/client4807/web15042/new2023/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #17 /var/www/clients/client4807/web15042/new2023/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /var/www/clients/client4807/web15042/new2023/wp-content/themes/ecolive/woocommerce/content-single-product.php(62): do_action('woocommerce_sin...') #19 /var/www/clients/client4807/web15042/new2023/wp-includes/template.php(787): require('/var/www/client...') #20 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template('/var/www/client...', false) #21 /var/www/clients/client4807/web15042/new2023/wp-content/plugins/woocommerce/templates/single-product.php(37): wc_get_template_part('content', 'single-product') #22 /var/www/clients/client4807/web15042/new2023/wp-includes/template-loader.php(106): include('/var/www/client...') #23 /var/www/clients/client4807/web15042/new2023/wp-blog-header.php(19): require_once('/var/www/client...') #24 /var/www/clients/client4807/web15042/new2023/index.php(17): require('/var/www/client...') #25 {main} thrown in<b>/var/www/clients/client4807/web15042/new2023/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/pro/class-alg-wc-pq-pro.php</b>on line<b>263</b>
    
    
    
    
    • This topic was modified 7 months, 2 weeks ago by jochen.
    #125728
    Moshtafizur
    Moderator
    Plugin Support

    Hi Jochen,

    Thanks for reaching out.

    I am really sorry to know you are experiencing problems.

    I have escalated this with our development team. They will get back to you as soon as they can.

    Kind regards,
    Moshtafizur

    #126110
    jochen
    Participant

    Hej,

    I just realised it only happens as soon as I switch on the quantity step options.

    Any idea?

    Thanks

    #126319
    Moshtafizur
    Moderator
    Plugin Support

    Hi there,

    We have fixed the issue in the latest version of the plugin (4.5.19). Please update the plugin to the latest version and see if the issue gets resolved.

    Kind regards,
    moshtafizur

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