• Resolved Laura Yeffeth

    (@lyeffeth)


    I am seeing the following error repeatedly in my server logs:

    PHP message: PHP Warning: Attempt to read property “ID” on null in /wp-content/plugins/relevanssi/lib/compatibility/woocommerce.php on line 297

    Can you take a look?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    This is where Relevanssi checks for product variations to see if the user is allowed to see the parent product. For some reason, the parent product of the variation does not work. I don’t know WooCommerce well enough to know how you can end up with a variation that doesn’t have a proper parent product, but that’s the problem. Figuring out the exact details when this happens would help.

    Thread Starter Laura Yeffeth

    (@lyeffeth)

    I don’t really see how it is possible to have a variation without a parent, but I’ll see what I can find out. In what circumstances does the plugin check this?

    Thread Starter Laura Yeffeth

    (@lyeffeth)

    I discovered some empty product variations with no parent. They didn’t have a title or price or anything. They had an “Edit” link but it didn’t do anything so I couldn’t even see what they might have been. Not exactly sure how that happened, but I’ve deleted them. I imagine that was the root of the error. Thanks for responding so quickly and pointing me in the right direction.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Server error’ is closed to new replies.