Support » Theme: Astra » CRITICAL Uncaught ArgumentCountError

  • Resolved martje65

    (@martje65)


    Astra theme version: 3.9.2
    Plugin version: Carousel Slider 2.1.0
    WooCommerce version: 6.9.2
    WordPress version: 6.0.2
    PHP version: 7.4

    We are using astra theme version 3.9.2 and Carousel Slider 2.1.0
    If we make a Product Carousel and when we enable the “Show Sale Tag” on the slider we get the next error on our website and in the log files.

    
    2022-10-02T07:27:16+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function Astra_Woocommerce::sale_flash(), 2 passed in /test.be/wp-includes/class-wp-hook.php on line 307 and exactly 3 expected in /test.be/wp-content/themes/astra/inc/compatibility/woocommerce/class-astra-woocommerce.php:302
    Stack trace:
    #0 /test.be/wp-includes/class-wp-hook.php(307): Astra_Woocommerce->sale_flash('<span class="on...', Object(WC_Product_Simple))
    #1 /test.be/wp-includes/plugin.php(191): WP_Hook->apply_filters('<span class="on...', Array)
    #2 /test.be/wp-content/plugins/carousel-slider/modules/ProductCarousel/View.php(173): apply_filters('woocommerce_sal...', '<span class="on...', Object(WC_Product_Simple))
    #3 /test.be/wp-content/plugins/carousel-slider/modules/ProductCarousel/View.php(117): Carous in /test.be/wp-content/themes/astra/inc/compatibility/woocommerce/class-astra-woocommerce.php op de lijn 302
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @martje65, sorry for the delay.

    Could you please share the link to the Carousel Slider plugin you mentioned above? And please let me know the exact steps to replicate the issue. I will try to reproduce it on my dev site.

    Looking forward to hearing from you.

    Kind regards,
    Herman 😊

    Thread Starter martje65

    (@martje65)

    Dear @bsfherman the creator of the plugin has solved it.

    That’s a great news. Thank you for the update.

    Feel free to start a new thread if there is anything else related to Astra we can help you with.

    Kind regards,
    Herman 😊

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CRITICAL Uncaught ArgumentCountError’ is closed to new replies.