Error on shop page: Attempt to read property “post_content” on null

#611847
  • Resolved Anonymous
    Rank Math free

    Hi!
    I’ve got an issue that I can’t deal with:

    on the Woocommerce example.com/shop page, I’m seeing the following error message:
    – Warning: Attempt to read property “post_content” on null in wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510 Warning: Attempt to read property “ID” on null in /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510 Warning: Attempt to read property “post_content” on null in /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510 Warning: Attempt to read property “ID” on null in /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    Additionally, the page title is being changed to “Page not found – {subtitle}”.

    – if I deactivate the RankMath Plugin, it is all back to how it should be.
    – un- and re-installing the plugin did not help.
    – disabling every plugin beside RankMath and Woocommerce did not help.
    – changing the theme to Twenty Twenty-Two did not help.

    If you search for the message, you’ll find many websites live that show the same message.

    Is there anything I can do about this?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please confirm if you’re using a template or Elementor template for your WooCommerce shop page?

    If so, you can follow our guide and troubleshooting in this similar ticket.

    Let us know how this goes.

    Thank you.

    Anonymous
    Rank Math free

    Yes, this worked for me – thank you for guiding me to this similar ticket! Wishing you a great start into the new week!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Error on shop page: Attempt to read property “post_content” on null’ is closed to new replies.