Missing field 'text' (in 'mainEntity.suggestedAnswer')

Further to this bug last week:

And:

I updated this morning to 2026.4.0-latest (97400099a5) but I’m still unable to validate the fixes with Google :thinking:

My Google search console is showing:

Clicking through to the validation / fix steps:

And when I try to validate any of the fixes:

I get the same “affected pages were found” error for all three types.

Have I missed something? :thinking:

2 Likes

Thank you for reporting, we are looking into this issue and should have an update soon.

4 Likes

Thanks @davidb very grateful :smiley:

I merged a change that should fix most of the errors you are seeing (ie. missing name/answerCount). It turned out these values were missing from the microdata:

https://github.com/discourse/discourse/commit/6e8876152c45c2bd7c2f1c0eb6a248f47de9f89c

The 3 problem urls in the last image appear to be a separate issue, 2 of them are emoji only posts with no text and the third is an image only post. But I ran them through the Schema markup validator by pasting the page source and all appear to have zero warnings or errors.

Possibly these 3 page issues will clear on a re-crawl.

5 Likes

Thanks David :smiley:

Will update Discourse again on Friday and re-try :crossed_fingers:t2:

1 Like

3 errors seem to be fixed, but 1 is remaining + 6 lesser severity annotations, all about missing fields within the suggested/acceptedAnswer elements:

Validation started means the issue is solved. “Not Started” means I couldn’t start it, since the quick initial validation still fond these issues, and I could verify that in the actual page source.

The “text” and “datePublished” fields were actually added to tests with the commit (and our instance contains that commit), but probably at the wrong element? E.g. “datePublished” is expected at the mainEntity, while the tests check it at the suggested/acceptedAnswer?

2 Likes

Could we not auto-close this topic just yet, please?

1 Like

Thank you for sharing, I will take a look into this soon and drop another update.

2 Likes