PHP error messages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105041
    berrey
    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 1 year, 11 months ago by WPWhale.
    #105042
    WPWhale
    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
    berrey
    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.