# Google Structured Data -- Invalid Article Schema

**URL:** https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037
**Category:** Support
**Created:** [February 7, 2017, 4:55am UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037 "2017-02-07T04:55:14Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [September 25, 2017, 3:22pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/22 "2017-09-25T15:22:26Z")

</div>



---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 27, 2018, 7:30pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/23 "2018-03-27T19:30:04Z")

</div>



---

<div class="post-metadata">

### Author: ![jlepine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlepine/32/119701_2.png) [@jlepine](https://meta.discourse.org/u/jlepine)
#### Post date: [March 27, 2018, 3:03pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/24 "2018-03-27T15:03:13Z")

</div>

Hi Discourse team,

First of all, I am new here, so I hope I am doing well posting here for a bug.

I tried to find an existing topic before to post a new one but I did not find anything, so I am sorry in advance if such topic already exists. Do not hesitate to link it or do whatever is necessary. Thank you.

* * *

So here is the issue I would like to report. As mentionned in the title, microdata on discourse do not fulfil with Google tool’s expectations.

**On topic lists, Google tools reports more than 60 errors :**

 ![list](https://global.discourse-cdn.com/meta/original/3X/f/7/f78aaee7683620befc894c45914e72f3d75327a4.png)  
_example of the main topic list_

for more details, see [this test](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest)

**There is also errors on posts :**

for more details, see [this other test](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Ft%2Ftopic-stopwatch-theme-component%2F83939)

* * *

My company is using discourse as forum for 3 of our websites. We greatly consider the SEO aspect and would be thankful for you to correct all possible errors in microdata.

So is it possible for you to fix microdata ?

---

<div class="post-metadata">

### Author: ![jlepine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlepine/32/119701_2.png) [@jlepine](https://meta.discourse.org/u/jlepine)
#### Post date: [April 13, 2018, 1:55pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/25 "2018-04-13T13:55:13Z")

</div>

Hi Discourse team,

I posted my question about two weeks ago. I assume fixing microdata will take a certain amount of time but since I got no answer yet I allow myself to ask you if the fix is on track and when it could be released ?

Thank you in advance for your work and your reply.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [April 13, 2018, 2:50pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/26 "2018-04-13T14:50:47Z")

</div>

Are all 61 errors saying the same thing? `<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>` needs to have a “position” attribute?

---

<div class="post-metadata">

### Author: ![jlepine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlepine/32/119701_2.png) [@jlepine](https://meta.discourse.org/u/jlepine)
#### Post date: [April 13, 2018, 3:00pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/27 "2018-04-13T15:00:28Z")

</div>

The 61 errors count 3 different kind of error :

- ItemList → itemListElement → url and/or ItemList → itemListElement → item → url (30 times): All values provided for _url_ must point to the same page.
- ItemList → itemListElement → position (30 times): A value for the _position_ field is required.
- global to ItemList (1 time): ListItem with _url_ and ListItem with _item_ are incompatible.

As I mentioned it in my first post, you can follow the links I gave to see all details.

---

<div class="post-metadata">

### Author: ![noisegratte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noisegratte/32/76500_2.png) [@noisegratte](https://meta.discourse.org/u/noisegratte)
#### Post date: [May 2, 2018, 8:30am UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/28 "2018-05-02T08:30:18Z")

</div>

Hi @t\_d ,

Any news about this subject ?  
When do you think a fix will be released ?

Thx

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 31, 2018, 8:03pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/30 "2018-05-31T20:03:41Z")

</div>

I can take it during june.

---

<div class="post-metadata">

### Author: ![hustler](https://avatars.discourse-cdn.com/v4/letter/h/a8b319/32.png) [@hustler](https://meta.discourse.org/u/hustler)
#### Post date: [June 3, 2018, 9:53pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/31 "2018-06-03T21:53:04Z")

</div>

Invision Boards handle structured data well to see how it could/should be done.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 13, 2018, 10:21pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/32 "2018-06-13T22:21:18Z")

</div>

I just pushed a commit to improve this:

[https://github.com/discourse/discourse/commit/276526e30ea6e791f97e1a14d1d6bc7a2fc06be2](https://github.com/discourse/discourse/commit/276526e30ea6e791f97e1a14d1d6bc7a2fc06be2)

I will keep digging but I think the remaining errors are due to google validation tool:

> **[Schema Markup Testing Tool | Google Search Central  |  Google for Developers](https://developers.google.com/search/docs/appearance/structured-data)**
>
> Use the Rich Result Test to see what Google results can be generated for your pages and the schema markup validator for generic schema validation.

> **[Schema Markup Testing Tool | Google Search Central  |  Google for Developers](https://developers.google.com/search/docs/appearance/structured-data)**
>
> Use the Rich Result Test to see what Google results can be generated for your pages and the schema markup validator for generic schema validation.

> **[Schema Markup Testing Tool | Google Search Central  |  Google for Developers](https://developers.google.com/search/docs/appearance/structured-data)**
>
> Use the Rich Result Test to see what Google results can be generated for your pages and the schema markup validator for generic schema validation.

> **[Schema Markup Testing Tool | Google Search Central  |  Google for Developers](https://developers.google.com/search/docs/appearance/structured-data)**
>
> Use the Rich Result Test to see what Google results can be generated for your pages and the schema markup validator for generic schema validation.

I still have this page to improve, will do it tomorrow:

> **[Schema Markup Testing Tool | Google Search Central  |  Google for Developers](https://developers.google.com/search/docs/appearance/structured-data)**
>
> Use the Rich Result Test to see what Google results can be generated for your pages and the schema markup validator for generic schema validation.

Particularly this page has a warning with “DiscussionForumPosting” which is asking us to provide an image if possible. I think we could just add `itemprop=“image” when we cook the post to images. I will investigate this.

---

<div class="post-metadata">

### Author: ![noisegratte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noisegratte/32/76500_2.png) [@noisegratte](https://meta.discourse.org/u/noisegratte)
#### Post date: [June 18, 2018, 10:04am UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/33 "2018-06-18T10:04:55Z")

</div>

Hi @j.jaffeux ,

You fixed the issues regarding the “position” attribute.

> [@jlepine](#):
>
> The 61 errors count 3 different kind of error :
> 
> - ItemList -\> itemListElement -\> url and/or ItemList -\> itemListElement -\> item -\> url (30 times): All values provided for _url_ must point to the same page.
> - ItemList -\> itemListElement -\> position (30 times): A value for the _position_ field is required.
> - global to ItemList (1 time): ListItem with _url_ and ListItem with _item_ are incompatible.
> 
> As I mentioned it in my first post, you can follow the links I gave to see all details.

But it still remains to resolve the uncompatibility between ListItem with “url” and ListItem with “item” Also, url attribute of each ListItem should point to the same page.

There is progress but still some work to do.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 18, 2018, 10:06am UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/34 "2018-06-18T10:06:30Z")

</div>

Yes I’m continuing work on this today or tomorrow. Thanks for recap/update.

> [@noisegratte](#):
>
> Also, url attribute of each ListItem should point to the same page.

I will investigate more, but I do think there’s a bug in google tool here. Can you share me a test where it’s showing this for you please?

---

<div class="post-metadata">

### Author: ![noisegratte](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noisegratte/32/76500_2.png) [@noisegratte](https://meta.discourse.org/u/noisegratte)
#### Post date: [June 18, 2018, 10:33am UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/35 "2018-06-18T10:33:34Z")

</div>

For example : [https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 18, 2018, 10:35am UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/36 "2018-06-18T10:35:57Z")

</div>

I see:

```plaintext
    <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
      <meta itemprop='position' content='0'>
      <meta itemprop='url' content='https://meta.discourse.org/t/color-scheme-contest-with-prizes/89432'>
      <a href='https://meta.discourse.org/t/color-scheme-contest-with-prizes/89432' itemprop='item'>
        <span itemprop='name'>Color Scheme Contest (with Prizes!)</span>
      </a>
      <span class="page-links">( <a href='/t/color-scheme-contest-with-prizes/89432?page=2'>2</a> )</span>
        <span class='category'>[<a href='/c/meta'>meta</a>]</span>
      <span class='posts' title='posts'>(22)</span>
    </div>

```

It seems weird to me that’s it’s not validated because the two elements with item prop have the same URL:

```plaintext
<meta itemprop='url' content='https://meta.discourse.org/t/color-scheme-contest-with-prizes/89432'>
<a href='https://meta.discourse.org/t/color-scheme-contest-with-prizes/89432' itemprop='item'>
  <span itemprop='name'>Color Scheme Contest (with Prizes!)</span>
</a>

```

I will look if it’s caused by the page-links or category link at the end of the block.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 24, 2018, 4:37pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/38 "2018-07-24T16:37:17Z")

</div>

More than any error in google validation tool, I’m interested by errors you would see in the google search console.

`Search console -> Search appearance -> Structured data` If you have **ERRORS** in this section which you think are caused by Discourse, I’m very interested to fix these.

---

<div class="post-metadata">

### Author: ![jlepine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlepine/32/119701_2.png) [@jlepine](https://meta.discourse.org/u/jlepine)
#### Post date: [July 30, 2018, 12:08pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/39 "2018-07-30T12:08:28Z")

</div>

As you asked for, I checked the `Search console -> Search appearance -> Structured data` panel for both our websites using Discourse as forum (i.e. [https://www.gamekult.com](https://www.gamekult.com) as GK and [https://www.focus-numerique.com](https://www.focus-numerique.com) as FN). We have absolutly **no errors caused by Discourse** on GK and no errors at all on FN.

However, I do not see how it could be different since Discourse is not embeded in the source code of our website. As you should know (I guess), our Discourse instances are completely separated applications that are hosted separately (servers/network of your own). We just provide access to them from links in our websites.

Since the issue relates only to errors that appear on Discourse’s pages ([https://meta.discourse.org](https://meta.discourse.org) or [Discourse Meta](https://meta.discourse.org/latest) for example), we provided you the link to the analysis of one of these urls : [https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest)

I think you should focus on this link and on the corresponding Discourse source code cause the issue really seems to concerns Discourse only.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 30, 2018, 12:32pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/40 "2018-07-30T12:32:48Z")

</div>

[Forum Jeux vidéo - Gamekult](http://www.gamekult.com/forum) is a subfolder, you can totally configure search console on this subfolder and google recommends it: [Add a website property to Search Console - Search Console Help](https://support.google.com/webmasters/answer/34592?hl=en)

> We recommend creating a separate Search Console property for each domain or folder that you want to track separately, as well as the lowest level domain that you own. For example, if you have a travel site with specific subfolders covering Ireland, France, and Spain, you could add the following sites to your Search Console account:
> 
> - [http://www.example.com/](http://www.example.com/)
> - [http://www.example.com/france/](http://www.example.com/france/)
> - [http://www.example.com/ireland/](http://www.example.com/ireland/)
> - [http://www.example.com/spain/](http://www.example.com/spain/)

The fact that it’s not in your “main” application code doesn’t change anything here, google doesn’t inspect your source code. He tries to get an URL an sees what he gets that’s all.

And yes I’m focusing on this link too, but I get very confusing results in my tests and would like to cross check this with " REAL" data.

---

<div class="post-metadata">

### Author: ![jlepine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlepine/32/119701_2.png) [@jlepine](https://meta.discourse.org/u/jlepine)
#### Post date: [July 30, 2018, 2:21pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/41 "2018-07-30T14:21:24Z")

</div>

I understand what you are saying.

I do not master Google Search Console so thank you for your explainations. I did not know about the subfolders.

I will try to give you as much information as possible.

**Google search console** :

 ![com](https://global.discourse-cdn.com/meta/original/3X/3/8/3819394295c1f8509d4c2cac3bdd4398274eaa0a.png)  
_As you can see for Gamekult, there is only few errors on VideoGame and Review data types._

**Google structured data testing tool** ( **_GK_** - [Schema Markup Testing Tool | Google Search Central &nbsp;|&nbsp; Google for Developers](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fwww.gamekult.com%2Fforum)) :

 ![com-forum%20-%201](https://global.discourse-cdn.com/meta/original/3X/d/b/db3cace312544030fb2958f7a0294bae20942278.png)  
_Here a first occurence of a unique error message on the right panel and the responsible source code line highlighted in grey on left panel_

 ![com-forum%20-%202](https://global.discourse-cdn.com/meta/original/3X/b/b/bb9a4423135f56c18bef845f6dde63e8409266be.png)  
_Here the second occurence of this unique error message on the right panel and the responsible source code line highlighted in grey on left panel. You can see that it is not the same line than for the first occurence (maybe it is relevant ?)_

**Google structured data testing tool** ( **_Discourse_** - [https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org)) :

 ![org](https://global.discourse-cdn.com/meta/original/3X/1/0/109768bffd3d03d4b84b3aec5cd97adb8f262964.png)  
_Here you can see only one error instead of 2 on GK’s forum. But it seems to be the exact same one than one of GK_

**Remark** :

- both urls in the `<meta>` tag and the `<a>` tag are absolute on Discourse whereas the `<meta>` tag’s url is relative on GK. I do not know why or if it is relevant but I think it could explain why urls are considered different.

First of all, I thought this issue would be an easy one for you. But after reading your last answer (which was lightning for me), I understand better how strange is this issue from your side.

So I hope this long answer will be helpful, even if I may not have been precise enough regarding what answer you expected. I tried to answer your question and to provide you in the same time as much information as possible . If I missed something, do not hesitate to ask.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 30, 2018, 2:23pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/42 "2018-07-30T14:23:01Z")

</div>

Awesome! Thanks! I just pushed a commit for this btw, we will get there 😉

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 30, 2018, 4:54pm UTC](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037/43 "2018-07-30T16:54:53Z")

</div>

seems my last fix improved this page: [https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest](https://search.google.com/structured-data/testing-tool/u/0/?hl=en#url=https%3A%2F%2Fmeta.discourse.org%2Flatest)

[Previous page](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037.md?page=1)

[Next page](https://meta.discourse.org/t/google-structured-data-invalid-article-schema/57037.md?page=3)
