
geomaticsgear(@geomaticsgear)
1 Post
Customers
Quote from geomaticsgear on August 11, 2022, 15:54
I have been using the currency switcher plugin for years and have had no problems - now I'm getting a error. geomaticsgear.com - I have a critical error - the error is
Fatal error: Uncaught ArgumentCountError: Too few arguments to function gpls_woo_rfq_empty_price(), 4 passed in /home/geomaticsgear/public_html/wp-includes/class-wp-hook.php on line 307 and exactly 5 expected in /home/geomaticsgear/public_html/wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php:846 Stack trace: #0 /home/geomaticsgear/public_html/wp-includes/class-wp-hook.php(307): gpls_woo_rfq_empty_price('<span class="wo...', '5,299', Array, 0) #1 /home/geomaticsgear/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters('<span class="wo...', Array) #2 /home/geomaticsgear/public_html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php(3851): apply_filters('wc_price', '<span class="wo...', '5,299', Array, 0) #3 /home/geomaticsgear/public_html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php(3358): WOOCS->wc_price('5,299', false, Array, Object(WC_Product_Variable), 0) #4 /home/geomaticsgear/public_html/wp-includes/class-wp-hook.php(307): WOOCS->woocomm in /home/geomaticsgear/public_html/wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php on line 846
There has been a critical error on this website.
This is what I see in the cpanel -
The filter is defined in the following location(s).
woocommerce/includes/wc-formatting-functions.php
}
/**
* Filters the string of price markup.
*
* @param string $return Price HTML markup.
* @param string $price Formatted price.
* @param array $args Pass on the args.
* @param float $unformatted_price Price as float to allow plugins custom formatting. Since 3.2.0.
* @param float|string $original_price Original price as float, or empty string. Since 5.0.0.
*/
return apply_filters( 'wc_price', $return, $price, $args, $unformatted_price, $original_price );
}
I have been using the currency switcher plugin for years and have had no problems - now I'm getting a error. geomaticsgear.com - I have a critical error - the error is
Fatal error: Uncaught ArgumentCountError: Too few arguments to function gpls_woo_rfq_empty_price(), 4 passed in /home/geomaticsgear/public_html/wp-includes/class-wp-hook.php on line 307 and exactly 5 expected in /home/geomaticsgear/public_html/wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php:846 Stack trace: #0 /home/geomaticsgear/public_html/wp-includes/class-wp-hook.php(307): gpls_woo_rfq_empty_price('<span class="wo...', '5,299', Array, 0) #1 /home/geomaticsgear/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters('<span class="wo...', Array) #2 /home/geomaticsgear/public_html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php(3851): apply_filters('wc_price', '<span class="wo...', '5,299', Array, 0) #3 /home/geomaticsgear/public_html/wp-content/plugins/woocommerce-currency-switcher/classes/woocs.php(3358): WOOCS->wc_price('5,299', false, Array, Object(WC_Product_Variable), 0) #4 /home/geomaticsgear/public_html/wp-includes/class-wp-hook.php(307): WOOCS->woocomm in /home/geomaticsgear/public_html/wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php on line 846
There has been a critical error on this website.
This is what I see in the cpanel -
The filter is defined in the following location(s).
woocommerce/includes/wc-formatting-functions.php
}
/**
* Filters the string of price markup.
*
* @param string $return Price HTML markup.
* @param string $price Formatted price.
* @param array $args Pass on the args.
* @param float $unformatted_price Price as float to allow plugins custom formatting. Since 3.2.0.
* @param float|string $original_price Original price as float, or empty string. Since 5.0.0.
*/
return apply_filters( 'wc_price', $return, $price, $args, $unformatted_price, $original_price );
}

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 12, 2022, 10:52
Hello
Looks please closer on error path: /home/geomaticsgear/public_html/wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php on line 846 - ArgumentCountError: Too few arguments to function gpls_woo_rfq_empty_price() - error produced in plugin woo-rfq-for-woocommerce. WOOCS is there because it also uses hook 'wc_price'
Hello
Looks please closer on error path: /home/geomaticsgear/public_html/wp-content/plugins/woo-rfq-for-woocommerce/woo-rfq-includes/woo-rfq-functions.php on line 846 - ArgumentCountError: Too few arguments to function gpls_woo_rfq_empty_price() - error produced in plugin woo-rfq-for-woocommerce. WOOCS is there because it also uses hook 'wc_price'