• Any idea why PHP is throwing an error with this:

    [9:17 AM, 6/22/2022] David Radovanovic: PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function no_price(), 1 passed in /var/www/whatsthebigidea.com/htdocs/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /var/www/whatsthebigidea.com/htdocs/wp-content/themes/brooklyn-child-KarayMetalsNEW/functions.php:232
    Stack trace:
    #0 /var/www/whatsthebigidea.com/htdocs/wp-includes/class-wp-hook.php(307): no_price('<span class="wo...')
    #1 /var/www/whatsthebigidea.com/htdocs/wp-includes/plugin.php(191): WP_Hook->apply_filters('<span class="wo...', Array)
    #2 /var/www/whatsthebigidea.com/htdocs/wp-content/plugins/woocommerce/includes/class-wc-cart.php(291): apply_filters('woocommerce_car...', '<span class="wo...')
    #3 /var/www/whatsthebigidea.com/htdocs/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(302): WC_Cart->get_total()
    #4 /var/www/whatsthebigidea.com/htdocs/wp-content/plugins/woocommerce/templates/cart/cart-totals.php(99): wc_cart_totals_order_total_html()
    #5 /var/www/whatsthebigidea.com/htdocs/wp-content/plugins/woocommer in /var/www/whatsthebigidea.com/htdocs/wp-content/themes/brooklyn-child-KarayMetalsNEW/functions.php on line 232

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dpaule

    Thank you for reaching out!

    It seems that your active theme is conflicting with WooCommerce.

    Could you please temporarily switch your theme to Storefront and then check if the error still exists?

    Also, in order for us to get a better understanding of your site setup, could you please share a copy of your website’s System Status Report?

    You can get it by navigating to the WooCommerce / Status section of your site. Once there, click on the Get system report button and then copy it by clicking on the Copy for support button. Then paste it here in a comment.

    Thank you!

    We haven’t heard back from you, so I’m marking this thread as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Fatal error: Uncaught ArgumentCountError’ is closed to new replies.