Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Can you verify that you’re running the latest version of our plugin? Also, can you check what PHP version you’re running?

    Thread Starter michaelezra

    (@michaelezra)

    PHP version: 5.5.38
    Offers for WooCommerce by Angell EYE – 1.3.0 – is this the latest?

    Plugin Contributor angelleye

    (@angelleye)

    Yes, that is the latest version. We haven’t had any other reports of this, and I’m not seeing it myself.

    Can you try temporarily disabling other plugins and switching to a basic “Twenty” theme to see if the problem goes away?

    Thread Starter michaelezra

    (@michaelezra)

    I commented out that line of code
    /*$offer_args[‘product_url’] = $product->get_permalink();*/

    and page rendered.
    2 things to point out:
    1. offer is expired
    2. I looked at the Woocommerce/Manage offers. Opened that offer and see this error: ERROR: Product not found for this offer.

    That must be it – likely I as I was testing the plugin, I used a test product that was deleted later, yet the offer records were left.

    The code on wp-content/plugins/offers-for-woocommerce/public/views/my-offers.php on line 54
    shoudl be able to output a legible error such as it is done in the admin page for manage offers, that product is not found.

    ??

    Thread Starter michaelezra

    (@michaelezra)

    When i deleted that offer, the error (Fatal error: Call to a member function get_permalink() on a non-object) was gone.

    Plugin Contributor angelleye

    (@angelleye)

    Ok, thanks for the info. We’ll see what adjustments we can make to make that more clear when a product is not available.

    Hi There,

    I have a similar error but on line 55. I’ve been trying to fix but it’s not an offer my error says:

    Fatal error: Call to a member function get_permalink() on a non-object in /home/content/03/9282503/html/GAY_TEES/wp-content/plugins/woocommerce/includes/class-wc-post-data.php on line 55

    Plugin Contributor angelleye

    (@angelleye)

    Are you running our latest plugin version?

    Hey!

    Same problem with WooCommerce last version: “call to a member function get_permalink()…”.

    You can check this post: https://www.ads-software.com/support/topic/fatal-error-2402/

    Plugin Contributor angelleye

    (@angelleye)

    Can you try switching to a basic theme and disabling all other plugins temporarily to see if the issue goes away?

    I have the same error, in a WordPress/WooCommerce without this plugin.
    I Think the problem is with WooCommerce, not with your plugin.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Call to a member function get_permalink() on a non-object’ is closed to new replies.