PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Function regular_price was called incorrectly

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

i see in debug.log warning “Function regular_price was called incorrectly”. Do you use that old function?

Hello

what plugin version number are you using?

Version 2.4.1.8

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png and  FTP+wp-admin access - https://share.pluginus.net/image/i20230222134615.png -  I will check it

Update the plugin to latest version - https://currency-switcher.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Can you send me the full text of the error?

 

Sorry but I can't find license key. Where can I find it?

I have updated the plugin to latest version 2.4.1.9 using Envato Market plugin.

One line of warrning:

[31-May-2024 09:38:28 UTC] PHP Notice:  Function regular_price was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/electro/page.php'), get_footer, locate_template, load_template, require_once('/themes/electro-child/footer.php'), electro_get_footer, get_footer, locate_template, load_template, require_once('/themes/electro/footer-v2.php'), do_action('electro_footer_v2'), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, electro_footer_widgets_v2, dynamic_sidebar, WP_Widget-&gt;display_callback, WC_Widget_Products-&gt;widget, wc_get_template, include('/plugins/woocommerce/templates/content-widget-product.php'), WC_Product-&gt;get_price_html, apply_filters('woocommerce_get_price_html'), WP_Hook-&gt;apply_filters, Gt_frontend-&gt;gt_add_prices_data_attributes, WC_Abstract_Legacy_Product-&gt;__get, wc_doing_it_wrong Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.0.) in /***/***/***/***/***/wp-includes/functions.php on line 6078
I have made analize becauxe this warrning is not good explantation and I found execution of function"regular_price" anly in FOX Currency Switcher.

I found the license key and pasted it.

Hello

Analyzing the error text: the problem is in your child theme. My plugin has this function but only for the old version of woocommerce. That is, this function does not work for new versions of woocommrce and cannot cause this error

Thanks,

you right. The problem was in old plugin.

Welcome;)