PHP error messages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105041
    blankberrey
    Participant

    I am getting 2 PHP warnings on my product pages:

    “PHP message: id was called incorrectly. Product properties should not be accessed directly. (…)”

    This is because the product ID is called the old way: $product->id

    Instead it must be called: $product->get_id()

    I changed it by myself in two of this plugins files and it seems to be working fine now. Maybe you want to check that with your deeper insights and update it in the next release.

    The files are:

    class-alg-wc-pq-core.php

    class-all-wc-pq-qty-info.php

    • This topic was modified 8 months, 4 weeks ago by blankWPWhale.
    #105042
    blankWPWhale
    Moderator

    Hi Berrey,

    Thanks for reporting this, please update to version 4.3.4 (just released), we pushed a fix for this error.

    Let us know otherwise please.

    Omar

    #105043
    blankberrey
    Participant

    Thank you Omar for the fast reaction. Problem solved.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.