May 31, 2019 at 7:17 pm #5271rmcfaddenParticipant
My cart page shows only the item in the cart, but it’s missing the checkout button and details of the pricing, etc.
Here is a picture of the cart page when the plugin is active: https://berealdoughs.com/wp-content/uploads/2019/05/Screenshot-2019-05-31-11.43.37.png
Here is a picture of the cart page when it’s deactivated: https://berealdoughs.com/wp-content/uploads/2019/05/Screenshot-2019-05-31-11.43.37.png
Do you know what is causing this?May 31, 2019 at 7:27 pm #5272Soft79Keymaster
There is a fatal error. Can you enable WP_DEBUG_LOG to see the error message?May 31, 2019 at 7:37 pm #5273rmcfaddenParticipant
Yes, here is a screenshot of the fatal error: https://berealdoughs.com/wp-content/uploads/2019/05/Screenshot-2019-05-31-15.35.13.png
and I copied and pasted it here:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function WJECF_Pro_Free_Products_Template::filter_woocommerce_cart_item_subtotal(), 1 passed in /home/ar9wdub854iz/public_html/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /home/ar9wdub854iz/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/class-wjecf-pro-free-products-template.php:193 Stack trace: #0 /home/ar9wdub854iz/public_html/wp-includes/class-wp-hook.php(286): WJECF_Pro_Free_Products_Template->filter_woocommerce_cart_item_subtotal(‘<span class=”wo…’) #1 /home/ar9wdub854iz/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘<span class=”wo…’, Array) #2 /home/ar9wdub854iz/public_html/wp-content/themes/amy-organic/woocommerce/cart/cart.php(123): apply_filters(‘woocommerce_car…’, ‘<span class=”wo…’) #3 /home/ar9wdub854iz/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include(‘/home/ar9wdub85…’) #4 /home/ar9wdub854iz/public_html in /home/ar9wdub854iz/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/pro/plugins/WJECF_Pro_Free_Products/class-wjecf-pro-free-products-template.php on line 193June 2, 2019 at 8:30 am #5279Soft79Keymaster
Hi, this seems to be an error in the Amy Organic theme. Please tell the author to add the $cart_item and $cart_item_key to the woocommerce_cart_item_subtotal-filter in woocommerce/cart/cart.php at line 123
It should be something like this:
echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
- You must be logged in to reply to this topic.