I’m receiving these erros in php log file:
[22-Jun-2022 12:43:32 UTC] 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
[22-Jun-2022 12:43:32 UTC] 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
the error is from custom code in your functions.pho in your child theme’s function.php
the error is not coming from the plugin.
Thanks for your fast reply. Think it may be the cause of the missing button?
you are getting a fatal error. so you need to fix that first.
It was indeed related to the Fatal Error. After adding
= null to
function no_price( $price, $product = null) {
$price = '-';
return $price;
}
all was good.
Now I have to see why emails are not being sent π
check the spam folder and make sure the emails are enabled. check the error log after an order is submitted.
Nothing arriving in Spam folder. Which error log? PHP? Or email? I am using Postfix.
your php error log . also your email log. install wp_smtp plugin and see if your emails are being sent. https://ww.wp.xz.cn/plugins/wp-smtp/
No other report of this problem. so there is a problem there with your email or email server. which email are you not getting? as admin or as customer?