PHP message: Warning: Undefined array key “@type” : Rankmath-pro on WPVIP

#744716
  • Resolved Anonymous
    Rank Math free

    {
    “@context”: “https://schema.org”,
    “@graph”: {
    “@type”: “Article”,
    “articleSection”: “%primary_taxonomy_terms%”,
    “headline”: “%seo_title%”,
    “description”: “%seo_description%”,
    “keywords”: “%keywords%”,
    “author”: {
    “@type”: “Person”,
    “name”: “%post_author%”,
    “url”: “%author_url%”
    },
    “datePublished”: “%date(Y-m-dTH:i:sP)%”,
    “dateModified”: “%modified(Y-m-dTH:i:sP)%”,
    “image”: {
    “@type”: “ImageObject”,
    “url”: “%post_thumbnail%”
    },
    “validthrough”: “%endDate%”
    }
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, I apologize for the issue you are facing with the Rankmath-pro on WPVIP. The warning message you received about the undefined array key “@type” indicates that there might be a missing or incorrect value in the schema markup configuration.

    To resolve this issue, please ensure that the “@type” key is correctly defined in the schema markup. In your provided JSON-LD code snippet, make sure that the “@type” key is set to “Article” as shown below:

    {
      "@context": "https://rankmath.com/kb/general-tab/",
      "@graph": {
        "@type": "Article",
        "articleSection": "%primary_taxonomy_terms%",
        "headline": "%seo_title%",
        "description": "%seo_description%",
        "keywords": "%keywords%",
        "author": {
          "@type": "Person",
          "name": "%post_author%",
          "url": "%author_url%"
        },
        "datePublished": "%date(Y-m-dTH:i:sP)%",
        "dateModified": "%modified(Y-m-dTH:i:sP)%",
        "image": {
          "@type": "ImageObject",
          "url": "%post_thumbnail%"
        },
        "validthrough": "%endDate%"
      }
    }

    By ensuring that the “@type” key is correctly set to “Article” in your schema markup, you should be able to resolve the warning message. If you continue to experience issues, please provide more details or screenshots so we can assist you further. Thank you for bringing this concern to our attention.

    Sources:
    Configuring “Schema Markup” in Rank Math » Rank Math
    General Tab in Meta Box of Rank Math SEO Plugin
    The #1 WordPress SEO Plugin in 2023 – Rank Math

    Hello,

    We’ve checked your site, and it seems that you’re using Rank Math PRO but the account you have used to open this ticket is the Rank Math free version.

    Can you please search and forward a receipt from FastSpring.com or the email address you used to purchase so we can locate your account and verify it?

    Meanwhile, from the error log, it seems that the issue is coming from the schema. The schema may be corrupted or applied incorrectly.

    If you have created any Schema templates, please delete them and add them again to see if that helps.

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

The ticket ‘PHP message: Warning: Undefined array key “@type” : Rankmath-pro on WPVIP’ is closed to new replies.