• Resolved BobsBURGS

    (@bobbysburgers)


    When are you going to fix this error

    id was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’),

    It takes like 2 minutes to do a search and replace on
    $product->id
    to
    $product->get_id()

    If you don’t, soon it will break when woocommerce fully depreciates it.

Viewing 1 replies (of 1 total)
  • Plugin Author flycart

    (@flycart)

    Hi

    Thank you for reaching out. I am Ramesh.
    I guess the issue was in a different plugin that has the file: wp-blog-header.php
    We do not have that file in our plugin.

    However, we are using the $product->id in two places for compatibility with lower versions of WooCommerce.
    For example, in the woo_functions.php, we use a condition to check the WC version.
    If it is greater than 3.x, we use the $product->get_id()
    if it is a lower versions, then we use the $product->id

    We did not use this method arbitrarily.
    Hope this helps.

    If i misunderstood your question, please do let me know.

    Thanks
    Ramesh

Viewing 1 replies (of 1 total)
  • The topic ‘d was called incorrectly. Order properties should not be access’ is closed to new replies.