Error when adding products to cart
Hello,
We are suddenly facing an issue using WooGift extension in the website of one of our clients, a fatal error appears when we add a product to the cart.
Here is the wp_debug trace :
Fatal error: Uncaught ArgumentCountError: Too few arguments to function FGW_gift_cart_item_price_custom_label(),
1 passed in /var/www/vhosts/flex-on.fr/httpdocs/wp-includes/class-wp-hook.php on line 308
and exactly 3 expected in /var/www/vhosts/flex-on.fr/httpdocs/wp-content/plugins/free-gifts-product-for-woocommerce/main/frontend/free-gifts-frontend-function.php:39
Stack trace: 0 /var/www/vhosts/flex-on.fr/httpdocs/wp-includes/class-wp-hook.php(308): FGW_gift_cart_item_price_custom_label() 1 /var/www/vhosts/flex-on.fr/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() 2 /var/www/vhosts/flex-on.fr/httpdocs/wp-content/themes/flexon/inc/woocommerce/functions.php(53): apply_filters() 3 /var/www/vhosts/flex-on.fr/httpdocs/wp-includes/class-wp-hook.php(310): filter_wc_add_to_cart_message_html() 4 /var/www/vhosts/flex-on.fr/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() 5 /var/www/vhosts/flex-on.fr/httpdocs/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(134): apply_filters() 6 / in /var/www/vhosts/flex-on.fr/httpdocs/wp-content/plugins/free-gifts-product-for-woocommerce/main/frontend/free-gifts-frontend-function.php on line 39
We already used and retested recently the extension and it was working well, our client needed to create a new gift product and then configured the plugin to do so, since when the error appears for any product that we add to the cart. I tried different combinations of settings and products but the problem is still there.
Do you have an idea of what could cause this ArgumentCountError ?
Thank you for your time,
Regards
Arnaud Donnadille
[email protected]
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس