• Resolved Johan WALTER

    (@johan_walter)


    Hi @nigeljamesstevenson

    After update WC 8.6.0, we have a deprecated message on all websites (debug mode)

    Deprecated: wc_get_log_file_path function is deprecated since version 8.6.0, no alternative is available. in /var/www/vhosts/xxxxx.com/wp-includes/functions.php on line 6031

    Can you provide a fix ?

    Thanks

    Regards

    Johan

    • This topic was modified 9 months, 1 week ago by Johan WALTER.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author nigeljamesstevenson

    (@nigeljamesstevenson)

    Thanks @johan_walter. I can see a related GitHub discussion here and have added a comment linking to this forum post for reference.

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi @nigeljamesstevenson

    I have updated only stagging website so far.
    Test I have done went Ok.
    This error message does not seem to prevent Woocommerce to work

    1 – Can you please confirm that if we can update prod website inspite of this message?

    2- Are you working on a fix and can we expect a solution soon ?

    Thanks

    Regards

    Johan

    Plugin Author nigeljamesstevenson

    (@nigeljamesstevenson)

    Hi @johan_walter,

    Feel free to pose this question as part of the GitHub discussion?here. I would think if you update then it will be ok but better to get confirmation from the team that is working on logging.

    Thanks!

    luketapis

    (@luketapis)

    I have exactly the same error. I figured out that this error comming from woopayment. When I disactivate woopayment plugin then the error disapear but of course then my customers can’t use Debit/Credit cards.

    Here is an example:

    https://tools4car.co.uk/product/panasonic-c19-delphi-ds150/

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi @nigeljamesstevenson

    FYI, this error message is not coming from WordPress or Woocommerce but from a plugin.

    Deprecated error message is confusing, it does not give more information about which plugin generates this error message

    I found out which plugin is causing error message adding code snippets to website (thanks to coreymckrill on Github)
    After adding this code we get a log file in WC logs. (Woocommerce > Status > Log)

    add_action(
    	'deprecated_function_run',
    	function( $function_name ) {
    		wc_get_logger()->debug(
    			'Deprecated function used.',
    			array(
    				'source'    => 'wc_deprecated_function',
    				'function'  => $function_name,
    				'backtrace' => true,
    			)
    		);
    	}
    );

    I close this ticket since it is not related to WC but posted code here if it can help other users

    Thanks

    Regards

    Johan

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @johan_walter,

    I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! ??

    Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WC 8.6.0 – Deprecated wc_get_log_file_path function’ is closed to new replies.