Google is picking up an error from Rank Math that is seriously affecting my SEO

#136277
  • Resolved John Great
    Rank Math free

    Google is picking up an error from Rank Math that is seriously affecting my SEO.

    It says the issue is from a missing field, “Location” on my home page. Since Google detected this error, there has been a downward spiral in my SEO results, both from Google and Alexa, with Alexa going down to 233,000 worldwide today, from a high of about 160,000 worldwide.

    Here is a screenshot of the error notification in Google Search Console: https://ibb.co/Sr2ytsF

    And here is a snippet of the code highlighted there as giving an error. I selected a little bit more for context:

    {
    “@type”: “WebPage”,
    “@id”: “https://lifeandtimesnews.com/#webpage”,
    “url”: “https://lifeandtimesnews.com/”,
    “name”: “LifeAndTimes News – Breaking Political, Entertainment News”,
    “datePublished”: “2017-01-11T12:27:55+00:00”,
    “dateModified”: “2021-01-02T08:17:55+00:00”,
    “isPartOf”: {
    “@id”: “https://lifeandtimesnews.com/#website”
    },
    “primaryImageOfPage”: {
    “@id”: “https://lifeandtimesnews.com/#primaryImage”
    },
    “inLanguage”: “en-US”
    },
    {
    “@type”: “Event”,
    “name”: “LifeAndTimes News – Breaking Political, Entertainment News”,
    “description”: “Life and Times News is brings you the latest breaking news from across Africa, Nigeria and the United States. The latest political, entertainment news are here.”,
    “eventStatus”: [
    “EventScheduled”
    ],
    “eventAttendanceMode”: “https://schema.org/OfflineEventAttendanceMode”,
    “location”: [],

    On deactivating RankMath, this code is no longer on the home page, and the error cannot be located anymore by Google Search Console, on the homepage.

    I feel the setting that has to do with this code snippet on my page is the ‘Titles and Meta > Pages > Schema Type’ section of the Rank Math plugin I chose for my pages to be classified as ‘events’, here because we do create ‘pages’ for event ads on the website. Most ‘posts’ are not for events, but for news articles.

    I tried changing this page classification to ‘none’. However, the code and the error still remained, as viewing the source code also revealed. I also tried changing the classification to another page type, but that also left the code the same.

    It took deactivating RankMath for the code quoted above, and the error to clear up.

    How can I change the code without deactivating the plugin please.

    I believe deactivating RankMath would also adversely affect my site’s Google rankings.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Danial
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for the inconvenience caused by this.

    If your website is generating articles it is suggested to set your default to Article.

    When you want to use Event Schema it can be added from your posts for posts that include an Event. You can remove the schema being used and add Event Schema. Multiple Schema can only work on PRO and Business version.

    The missing field indicates that your Venue Name is empty.

    Please see the screenshot on how to add Event schema on your posts.
    https://i.rankmath.com/ysPeUx

    I hope this resolves your issue.

    Roel John
    Rank Math business

    Hello,

    If you want you can remove the location under the event schema using our filter hooks. Please add the code below to your functions.php.

    
    /**
     * Collect data to output in JSON-LD.
     *
     * @param array  $unsigned An array of data to output in json-ld.
     * @param JsonLD $unsigned JsonLD instance.
     */
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	unset($data['Event']['location']);
    	return $data;
    }, 99, 2);
    

    Please let us know if this helps.

    If you need further assistance, please don’t hesitate to contact us.

    Thank you.

    I have added the code in functions.php, and everything looks the same. The schema type is on ‘Article’ now. Should ‘location’ still be coming up??

    … because it still is..

    Roel John
    Rank Math business

    Hello,

    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.

    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.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Is there a specific page that we should check for this issue?

    I can’t replicate the issue on your homepage, here is a screenshot from the rich results test tool: https://i.rankmath.com/m1DDyX

    Looking 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Google is picking up an error from Rank Math that is seriously affecting my SEO’ is closed to new replies.