Warning on site

#614867
  • Resolved Anonymous
    Rank Math free

    Hello,
    I am a new rank math user. So far no problems, but since yesterday I get this Warning on one of my sites.

    Warning: Attempt to read property “post_content” on null in /home/httpd/vhosts/smartkauf.ch/httpdocs/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/httpd/vhosts/smartkauf.ch/httpdocs/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/httpd/vhosts/smartkauf.ch/httpdocs/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/httpd/vhosts/smartkauf.ch/httpdocs/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 510

    I didn’t find anything on google that helps me with that problem.

    Can you help me?

    Regards,
    Alexandra

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

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    We’ve checked your website and we can see that the warnings are appearing on your shop page. Could you please confirm if you’re using a template or Elementor template for your shop page? If so, then you can try to add the following filter on your website and see if that works for you:

    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’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Thank you for your response.

    Yes I have the basic Elementor template.

    Anonymous
    Rank Math free

    Just installed the Code Snippets Plugin and did everything as described. Yet, the problem is still there.

    What can I do now, as the code doesn’t seem to work?

    Looking forward to your reply

    Thanks in advance

    Hello,

    Please try clearing your website’s cache and check again if the error is still appearing.

    If the issue still persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Warning on site’ is closed to new replies.