Home Forums Themes Support Pricom Errors found in error.log

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10473
    ozberk
    Supported

    Hi
    The error I have mentioned below is constantly accumulating in the error.log file in the main directory.

    [06-Feb-2023 10:20:32 UTC] The get_product function is deprecated since version 3.0. Replace with wc_get_product.

    #10474

    Hi,
    Thanks for contacting us and choosing our product!
    About this issue you can go to: wp-content/themes/pricom/framework/includes/ then open file woocommerce-hooks.php
    Go to line 856 and change the code from:
    $product = get_product( $product_id );
    to
    $product = wc_get_product( $product_id );
    We’ll update this in the next version.
    This is a warning and now it still works fine.
    Hope this helps!

    ****
    Regards,
    HaruTheme

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.