🎊 Valentine's Day DISCOUNT! + 2x Benefits for FREE

LIMITED TIME OFFER!

Resolving Rank Math Schema Markup Related Issues

Schema markup is an essential element of optimizing your website for search engines. However, the advantages of having a Schema markup may quickly disappear when the Schema is improperly set up or corrupted. So, you should always rectify Schema markup-related issues as soon as you identify them.

In this knowledgebase article, we will delve into some common Schema markup problems and provide solutions to resolving them. So, let’s dive in and get your schema markup back on track!

1 My Schema is Corrupted

You may have encountered a situation where your post or page editor appears to break when you click on the Schema tab. This is the result of a corrupted Schema. Below, we will show you how to delete the corrupted Schema from your database.

Note: Changes to the database can result in errors that cannot be undone and may harm your website. You should make a backup of your website/database before you continue.

1.1 Delete the Schema Using Bulk Actions PRO

If you have Rank Math PRO, navigate to WordPress Dashboard → Posts or Pages and select the affected posts or pages. Once done, click Bulk actions, as shown below. 

Select the affected posts or pages

In the Bulk actions menu, select Set Schema: None. Once done, click Apply

Note: This method will delete all Schema, corrupted and uncorrupted, from the selected posts or pages. To delete only the corrupted Schema, you’ll have to do that through the database. 

Select Set Schema None

1.2 Delete the Schema From the Database

First, navigate to WordPress Dashboard → Posts or Pages. Once done, hover over the affected post or page. A URL will display at the bottom-left corner of your screen. Take note of the number in between ?post= and &action=edit. That is your post ID. 

Take note of your post ID

After getting your post ID, log into your database. For this example, our database is located in cPanel → phpMyAdmin.

Note: You may need to contact your host for your database’s location and login details.

Log into your database

From the phpMyAdmin dashboard, select the affected database, as shown below. 

Select your database

Next, enter postmeta in the search bar. Once the postmeta table shows up, click on it, as shown below. 

Enter postmeta into the search bar

Now, select Show all. If unavailable, set the Number of rows option to 500. Once done, enter the post id you copied earlier, followed by rank_math_schema, into the Filter rows bar.

Enter the post id followed by rank_math_schema

If you click Show all, you will be presented with the Schema markups on the post id. If you set the Number of rows to 500, you will use the navigation arrows to head to the next page until the Schema markups are displayed.

Once the Schema markups are displayed, head to the corrupted Schema and click Delete. Once done, you can return to WordPress to add a new Schema to the post. 

Head to the corrupted Schema and click Delete

2 Search Console Displays Missing Field “Image”

If you use WooCommerce, you may encounter a Missing field “image” error message in Google Search Console. You’re experiencing this error because you’re not using the WooCommerce Product Schema on your product pages. Below, we’ll show you how to resolve the error.

Note: Rank Math automatically adds the featured or product image to the Product Schema markup. So, before you begin, head to the affected product page and confirm that you have added a featured or product image. 

2.1 Update the Schema Using Bulk Actions PRO

First, navigate to WordPress Dashboard → Rank Math SEO → Titles & Meta → Products and set the Schema Type to WooCommerce Product. Once done, scroll down the page and click Save Changes

Set the Schema Type to WooCommerce Product

Next, navigate to WordPress Dashboard → Products and select the affected products. Once done, click the Bulk actions dropdown, as shown below.

Select the affected products

In the Bulk actions menu, select Set Schema: Default (product). Once done, click Apply. The WooCommerce Product Schema will now be applied to your products.

Select Set Schema default product

2.2 Update the Schema From the Product Page

Navigate to WordPress Dashboard → Products and click on the applicable product. 

Navigate to Products and click on the applicable product

Next, head to the Rank Math SEO metabox and click the Schema icon, as shown below. 

Click the Schema icon

Once done, click Schema Generator, as shown below. 

Note: If you’re using Rank Math FREE, you’ll need to delete the existing Schema to add a new one.  

Click the Schema Generator

Now, you’ll select the WooCommerce Product Schema, as shown below. 

Select the WooCommerce Product Schema

Once done, click Save for this Post. The WooCommerce Product Schema will be added to the page. You can now proceed to Update the page to save your changes.

3 Search Console Displays Invalid DateTime Value for UploadDate

Google has updated its structured data guidelines for Video Schema, which modifies the data format for UploadDate Schema property. If your website includes old Video Schema data fetched from YouTube, then it is possible you might see these warnings in Google Search Console or Google Rich Results Testing tool:

  • Datetime property “uploadDate” is missing a timezone
  • Invalid datetime value for “uploadDate”

To fix these warnings, please include the below filter to your theme’s functions.php or rank-math.php file. This filter will ensure that the UploadDate Schema property includes the correct timezone information.

/**
 * Filter code to add time & timezone in existing Video Schema 
 */
add_filter( 'rank_math/snippet/rich_snippet_videoobject_entity', function( $entity ) {
	if ( empty( $entity['uploadDate'] ) ) {
		return $entity;
	}

	$parts = explode( 'T', $entity['uploadDate'] );
	if ( ! empty( $parts[ 1 ] ) ) {
		return $entity;
	}

	$entity['uploadDate'] = wp_date( 'Y-m-d\TH:i:sP', strtotime( $entity['uploadDate'] ) );

	return $entity;
} );

4 Schema Does Not Delete 

If you’re unable to delete a Schema, then you likely have a firewall installed on your site. To solve that, navigate to your firewall settings and whitelist the below route.

/wp-json/rankmath/v1/updateMeta

You can refer to this guide to whitelisting Rank Math in Wordfence.
If you use Sucuri, refer to this guide on whitelisting Rank Math in Sucuri.
If you use Cloudflare, refer to this guide on whitelisting Rank Math in Cloudflare.

In conclusion, properly resolving Schema markup-related issues is crucial for improving your website’s search engine visibility and overall user experience. So, take the time to address any Schema issues you may have encountered and reap the benefits of improved online visibility and user engagement.

We hope you are able to resolve the Schema markup issues you encountered on your WordPress site. If you have any questions, you’re more than welcome to contact our dedicated support team. We’re available 24/7, 365 days a year…

Still not using Rank Math?

Setup takes less than 5 minutes including the import from your old SEO Plugin!

Learn more about the PRO Version

Still need help?

?

Submit Your Question

Please give us the details, our support team will get back to you.

Open Ticket

Related Articles