Hello,
This is not an error, just a warning to developers that wc_add_to_cart_message function is deprecated and will be removed on upcoming updates and should replace with new function. You can check if there any udpate available for theme/plugins, may be they have already updated it.
Or you will have to check where exactly this function is called (full error log might have more details) and replace it.
Thread Starter
ceslad
(@ceslad)
Hi, @safeerz.
Inside the WooCommerce plugin, I found this path with the function you are referring to.
woocommerce/includes/wc-deprecated-functions.php
* @deprecated 3.0
*/
function woocommerce_add_to_cart_message( $product_id ) {
wc_deprecated_function( __FUNCTION__, ‘3.0’, ‘wc_add_to_cart_message’ );
wc_add_to_cart_message( $product_id );
I replace “wc_add_to_cart_message” with “wc_add_to_cart_message_html”
But the problem persists.
Hello,
No, you are not supposed to edit WooCommerce files. What the warning says is your theme or some other plugins call this deprecated WooCommerce functions. so it is your theme or some other plugin is causing it.
Thread Starter
ceslad
(@ceslad)
Hi, @safeerz.
Finally, I was able to solve this problem, but now the following message is appearing:
No log handling enabled – turning on stderr logging
Created directory: / var / lib / net-snmp
Created directory: / var / lib / net-snmp / mib_indexes
What would that be?
Thanks..
Sounds like something to do with your server config. try this suggestion
https://stackoverflow.com/questions/27641984/no-log-handling-enabled-error-in-installation-of-php
or contact your hosting.
Thread Starter
ceslad
(@ceslad)
Olá, @safeerz.
I did not find the extension “extension = php_snmp.dll”
I do not have “php.ini”
I only have info.php
Please understand that this is nothing to do with WordPress, but with your server configuration. most of shared hosting have restriction changing server configuration or they do not provide separate php.ini. Plase chek with our hosting.
Hi there!
There hasn’t been a reply for a while so I’m going to close this ticket.
If you’re still having problems please open a new ticket, thanks!