SupportCategory: Free Product Sample for WooCommerceGetting error when going to cart
Daniel Bennekers asked 3 months ago

Seems to have happened after using TranslatePress:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Woo_Free_Product_Sample_Pro_Settings::woo_free_product_sample_price(), 1 passed in /volume1/web/donedgar/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /volume1/web/donedgar/wp-content/plugins/woo-free-product-sample-pro/includes/class-woo-free-product-sample-pro-settings.php on line 162 ArgumentCountError: Too few arguments to function Woo_Free_Product_Sample_Pro_Settings::woo_free_product_sample_price(), 1 passed in /volume1/web/donedgar/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /volume1/web/donedgar/wp-content/plugins/woo-free-product-sample-pro/includes/class-woo-free-product-sample-pro-settings.php on line 162 Call Stack: 0.0001 409448 1. {main}() /volume1/web/donedgar/index.php:0 0.0001 409720 2. require(‘/volume1/web/donedgar/wp-blog-header.php’) /volume1/web/donedgar/index.php:17 3.1844 52595560 3. require_once(‘/volume1/web/donedgar/wp-includes/template-loader.php’) /volume1/web/donedgar/wp-blog-header.php:19 3.2261 53123368 4. include(‘/volume1/web/donedgar/wp-content/themes/neve/page.php’) /volume1/web/donedgar/wp-includes/template-loader.php:106 6.2214 57022464 5. get_template_part() /volume1/web/donedgar/wp-content/themes/neve/page.php:24 6.2214 57023032 6. locate_template() /volume1/web/donedgar/wp-includes/general-template.php:168 6.2215 57023144 7. load_template() /volume1/web/donedgar/wp-includes/template.php:672 6.2216 57023864 8. require(‘/volume1/web/donedgar/wp-content/themes/neve/template-parts/content-page.php’) /volume1/web/donedgar/wp-includes/template.php:725 6.2216 57023864 9. do_action() /volume1/web/donedgar/wp-content/themes/neve/template-parts/content-page.php:9 6.2216 57024240 10. WP_Hook->do_action() /volume1/web/donedgar/wp-includes/plugin.php:478 6.2216 57024240 11. WP_Hook->apply_filters() /volume1/web/donedgar/wp-includes/class-wp-hook.php:311 6.2217 57025392 12. Neve\Views\Page_Layout->render_page() /volume1/web/donedgar/wp-includes/class-wp-hook.php:287 6.2217 57025392 13. the_content() /volume1/web/donedgar/wp-content/themes/neve/inc/views/page_layout.php:29 6.2271 57025384 14. apply_filters() /volume1/web/donedgar/wp-includes/post-template.php:253 6.2271 57025784 15. WP_Hook->apply_filters() /volume1/web/donedgar/wp-includes/plugin.php:206 6.2292 57028872 16. do_shortcode() /volume1/web/donedgar/wp-includes/class-wp-hook.php:287 6.2293 57033056 17. preg_replace_callback() /volume1/web/donedgar/wp-includes/shortcodes.php:218 6.2293 57033688 18. do_shortcode_tag() /volume1/web/donedgar/wp-includes/shortcodes.php:218 6.2296 57033688 19. WC_Shortcodes::cart() /volume1/web/donedgar/wp-includes/shortcodes.php:343 6.2296 57033688 20. WC_Shortcodes::shortcode_wrapper() /volume1/web/donedgar/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:85 6.2312 57072616 21. WC_Shortcode_Cart::output() /volume1/web/donedgar/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:72 6.3106 57203712 22. wc_get_template() /volume1/web/donedgar/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php:99 6.3122 57235648 23. include(‘/volume1/web/donedgar/wp-content/plugins/woo-free-product-sample/public/partials/woocommerce/cart/cart.php’) /volume1/web/donedgar/wp-content/plugins/woocommerce/includes/wc-core-functions.php:344 6.3351 57253056 24. apply_filters() /volume1/web/donedgar/wp-content/plugins/woo-free-product-sample/public/partials/woocommerce/cart/cart.php:82 6.3351 57253456 25. WP_Hook->apply_filters() /volume1/web/donedgar/wp-includes/plugin.php:206 6.3404 57255336 26. Woo_Free_Product_Sample_Public->wfps_alter_item_name() /volume1/web/donedgar/wp-includes/class-wp-hook.php:287 6.3404 57255336 27. Woo_Free_Product_Sample_Public::wfps_price() /volume1/web/donedgar/wp-content/plugins/woo-free-product-sample/public/class-woo-free-product-sample-public.php:590 6.3404 57255336 28. apply_filters() /volume1/web/donedgar/wp-content/plugins/woo-free-product-sample/public/class-woo-free-product-sample-public.php:82 6.3404 57255736 29. WP_Hook->apply_filters() /volume1/web/donedgar/wp-includes/plugin.php:206 6.3405 57257240 30. Woo_Free_Product_Sample_Pro_Settings->woo_free_product_sample_price() /volume1/web/donedgar/wp-includes/class-wp-hook.php:287

 

2 Answers
hossain88 Staff answered 2 months ago

Allow me to check it

hossain88 Staff answered 2 months ago

Share your website access privately.