-
To Whom It May Concern,
I’ve installed Rank Math, used the Setup Wizard to complete the steps there and, in addition, specified Page and Post type Schema markup with the Titles and Meta section. When running some pages through the Schema markup validator, I received an error, which I cannot figure the cause. The issue is Unspecified Type. Link in the Sensitive Data section.
Thanks,
Aryeh
-
Hello,
We apologize for the issue you are facing with the Schema Markup validation error. It sounds like you’ve taken the right steps by using the Setup Wizard and specifying the Schema markup in the Titles and Meta section.
The "Unspecified Type" error typically indicates that the Schema type may not be correctly set for certain pages or posts. Here are a few steps you can take to troubleshoot this issue:
-
Check Default Schema Settings: Ensure that you have selected a default Schema type for your posts and pages. You can do this by navigating to Rank Math SEO → Titles and Meta → Posts and checking the Schema Type option. Make sure a valid Schema type is selected.
-
Individual Post/Page Settings: After setting the default, check individual posts or pages to ensure they have the correct Schema type assigned. You can do this in the Rank Math meta box on each post/page editor.
-
Schema Validation Tool: Use Google’s Rich Results Test or the Schema Markup Validator to see if there are any specific errors listed for your pages.
If you continue to experience issues, please reply to this ticket with the URL of the affected pages, and a human agent from our support team will assist you further. Thank you for raising this concern!
Sources:
Configuring “Schema Markup” in Rank Math » Rank Math
Configuring “Schema Markup” in Rank Math for Rich Snippets » Rank Math
Analyzing Your Site’s SEO with Rank Math’s SEO Analysis Tool
How to Setup Rank Math SEO Plugin ProperlyThis is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please edit your homepage and go to the Schema tab in Rank Math. In there, remove the schema and add it again.
That should fix the issue.
Let us know how that goes. Looking forward to helpign you.
Thanks! So I deleted the Schema markup for the home page. But, the issue is actually on *every* page of the website. How might I fix this sitewide issue?
Hello,
We’ve tested some of your pages, but we’re unable to replicate the issue.
Could you please share the affected URL/s so we can check further?
Looking forward to helping you.
All of the pages at the website above were affected. I just spoke to our web developer who told me that she accidentally was running Yoast at the same time as RankMath. She has since deleted it but the issue persists on all pages. What do you recommend? I would prefer to not have to republish RankMath but if that is what you recommend then I can do that. Please advise.
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.
Please do take a complete backup of your website before sharing the information with us.
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/
Looking forward to helping you.
Thank you.
Thank you, Rakibuzzaman. I spoke with our web dev and I was not given the permission to share the access to our site with you, although I appreciate your support. Would you please use the same domain in the sensitive data with the following paths and run it through the Schema markup validator?
/gems/
/jewelry/
/resources/As mentioned, for a short while, we had both RankMath and Yoast enabled and I am considering deleting and reinstalling RankMath again, now that Yoast has been deleted. Would you recommend that as well?
Thanks,
AryehHello,
The issue with those pages’ schema is that it is missing the required
@type
to define what they are, such as “Article” or “Product”:@type Unspecified Type (@type is required and the string cannot be empty.)
This issue must be caused by a conflicting plugin with Rank Math’s schema generation. Since you have already disabled Yoast, please remove the schema applied to those pages and add it again.
Please note that the idea of having more than one SEO plugin for 2x optimization of your website for search engines is a misconception, and you shouldn’t have 2 plugins to perform the same task, as it can hurt your website more than it does any good:
https://rankmath.com/kb/keep-only-one-seo-plugin-active/Looking forward to helping you.
Thanks! That worked. I have another question. I’d like to generate a generic WebPage Schema markup type for pages that don’t fit any of the other types. Is there a way to set that up with RankMath? Currently, I can only select a particular type and if no type is selected than I won’t have any Schema markup on that particular page.
Hello,
If you’re not using any schema from the pre-defined schema list, then you can use and customize this filter to add the webPage schema manually on those pages:
add_filter( 'rank_math/json_ld', function( $data, $jsonld ) { if ( get_post_type() == 'your-cpt-name') { // Replace with your post type $data['@type'] = 'WebPage'; } return $data; }, 99, 2);
Here is how to add a filter to your site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Looking forward to helping you.
Thanks. The output of the filter you suggested does indeed have WebPage but instead of the @type being WebPage, the @graph is WebPage and @type is Unspecified. Ideally, we would like the for the @type to be WebPage, @partOf Organization (which we added in the RankMath setup Wizard) and for the @sameAs, @description, @publishDate etc. properties to be in the out put as well. How might we go about getting all of that information, that we would get with a specified page, on the page that doesn’t have a specified Schema markup to it? Thanks!
Hello,
To achieve the full WebPage schema with properties, you’ll need to merge or extend the existing Rank Math schema data rather than just replacing the
@type
.You can hook into the
rank_math/json_ld
filter to modify or add those properties conditionally, for example, by checking if the schema type is Unspecified and then injecting the full WebPage schema structure, including your organization data.This type of customization falls outside the scope of our support, so we recommend checking with your developer to create the custom filter code for you.
Don’t hesitate to get in touch with us if you have any other questions.
-
You must be logged in to reply to this ticket.