• Resolved dvolkering

    (@dvolkering)


    When I am searching with the search widget from woocommerce, and there are no results for the search term, the my account widget is giving an error.

    I’m getting the following message:
    Fatal error: Call to a member function populate() on a non-object in C:\XXXXXX\wp-content\plugins\woocommerce-my-account-widget\woocommerce-my-account-widget.php on line 173

    On line 173 is the following code:
    $order->populate( $customer_order );

    When I remove this piece of code the search function is working normally. I don’t know what the piece of code is doing, so I don’t have a solution for it by myself.

    https://www.ads-software.com/plugins/woocommerce-my-account-widget/

Viewing 5 replies - 1 through 5 (of 5 total)
  • same issue here, need help.
    any news?
    Found out the it is not just a search issue, the error also comes out when you try to open an empty product category, so, instead of no prosucts found page it gives you the error:

    Fatal error: Call to a member function populate() on a non-object in woocommerce-my-account-widget/woocommerce-my-account-widget.php

    solved by adding
    $order = new WC_Order(); just before
    $order->populate( $customer_order );
    no idea why it works tho, so no guarantees)

    Plugin Author WP Fortune

    (@bpluijms)

    Hello both,

    We’re currently investigating this issue and if solved update the plugin asap.

    Best regards,
    Bart

    Thread Starter dvolkering

    (@dvolkering)

    Do you have any idea when this issue will be solved?

    Plugin Author WP Fortune

    (@bpluijms)

    Hello,

    This was already fixed in version 0.4.8.

    Is you’re still experiencing problems add a new post because it’s probably not related to the same topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with Woocommerce Search Widget’ is closed to new replies.