• Resolved Maxo82

    (@makso1982)


    Hello,

    Today I noticed the error. See link. above.
    If I uninstall RankMath the error is gone.
    When I install RankMat Pro I get the error message.

    How do I best fix it?
    Thank you very much

    • This topic was modified 11 months, 3 weeks ago by Maxo82.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @makso1982,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please share the error log or message you see from your end when you activate the Rank Math PRO plugin? This is so we can determine what’s causing the issue and provide a solution accordingly.

    Looking forward to helping you.

    Thread Starter Maxo82

    (@makso1982)

    Hello
    sorry for the late response.

    Hello
    sorry for the late response.

    Hello
    sorry for the late response.

    When I start RM Pro I don’t get any error messages.
    Where it shows errors is under the shop page:
    No matter which browser

    Warning: Attempt to read property “post_content” on null in /home/.sites/413/site3842332/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510 Warning: Attempt to read property “ID” on null in /home/.sites/413/site3842332/web/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 /home/.sites/413/site3842332/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510 Warning: Attempt to read property “ID” on null in /home/.sites/413/site3842332/web/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    • This reply was modified 11 months, 3 weeks ago by James Huff. Reason: redundant link removed
    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @makso1982,

    Please add the following filter to your site to fix the issue:
    add_filter( 'rank_math/opengraph/pre_set_content_image', function( $return ) {
    if(is_shop()){
    return true; // Set to true if you don't want to set image from Content.
    }
    });

    Here is how to add a filter:?https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter Maxo82

    (@makso1982)

    Perfect support!
    The error has been fixed!
    Thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attempt to read property “post_content”’ is closed to new replies.