Advertisement

Schema.org custom does not work for embedded video

Discuss Search Engine Optimization in relation to Joomla! 5.x. This forum will also have discussions on SEF/SEO Joomla! 5.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
Slackervaara
Joomla! Ace
Joomla! Ace
Posts: 1132
Joined: Sat Aug 13, 2011 6:27 am

Schema.org custom does not work for embedded video

Post by Slackervaara » Sun Jan 12, 2025 7:19 pm

I have four Joomla articles with embedded videos (not [youtube]) that Google complains that certain things like uploadDate is missing.
Joomla 5.2.3
Gantry 5 Hydrogen
PHP 8.3
I have added Json+LD code in custom Schema.org in the article to fix this, but when I save the article I get a red message:
JSON code is not valid or @context or @type missing. I have checked this JSON code online and its reported valid: https://jsonlint.com/

Code: Select all

{
  "@context": "http://schema.org",
  "@type": "VideoObject",
  "name": "Nationella utvecklingsteam ska stotta den specialiserade psykiatrin",
  "description": "Socialministern presenterar satsning för att stodja den specialiserade psykiatrin",
  "thumbnailUrl": "https://regeringen.se/globalassets/video-thumbnails/4f73bcebcad642caab2f2f21c88d4a95/",
  "uploadDate": "2024-08-19T14:00:00+01:00",
  "duration": "PT27S",
  "embedUrl": "https://play2.qbrick.com/qplayer/index.html?accountId=3175841&mediaId=50bb67a7-1fb3-49a1-8fe1-692b3bdd6299&configId=Enterprise" 
}
Grateful for comments!

Advertisement
shumisha
Joomla! Guru
Joomla! Guru
Posts: 558
Joined: Sat Aug 20, 2005 3:15 pm
Contact:

Re: Schema.org custom does not work for embedded video

Post by shumisha » Sun Jan 12, 2025 7:41 pm

Hi,

What matters is what's in the actual page source code, not this snippet, so without the real link, debugging is not really possible.
4SEO, 4AI, 4Command, 4Podcast, 4Video, SEO and content extensions for Joomla 3, 4 & 5 - https://weeblr.com
I don't reply to PM anymore. Thanks for using our extensions.

User avatar
Slackervaara
Joomla! Ace
Joomla! Ace
Posts: 1132
Joined: Sat Aug 13, 2011 6:27 am

Re: Schema.org custom does not work for embedded video

Post by Slackervaara » Sun Jan 12, 2025 8:34 pm

Thanks,
Found this in the pages sourcecode:

Code: Select all

  <script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","@id":"https://www.mysite/#/schema/BreadcrumbList/180","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https://www.mysite/","name":"Hem"}},{"@type":"ListItem","position":2,"item":{"@id":"https://www.mysite/nyheter1","name":"Nyheter1"}},{"@type":"ListItem","position":3,"item":{"@id":"https://www.mysite/nyheter1/19-varden","name":"Vården"}},{"@type":"ListItem","position":4,"item":{"name":"Nationella utvecklingsteam ska stötta den specialiserade psykiatrin"}}]}</script>
	<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"Person","@id":"https://www.mysite/#/schema/Person/base","name":"Admin","url":"https://www.mysite/"},{"@type":"WebSite","@id":"https://www.mysite/#/schema/WebSite/base","url":"https://www.mysite/","name":"Bli friskare","publisher":{"@id":"https://www.mysite/#/schema/Person/base"}},{"@type":"WebPage","@id":"https://www.mysite/#/schema/WebPage/base","url":"https://www.mysite/nyheter1/19-varden/10498-nationella-utvecklingsteam-ska-stoetta-den-specialiserade-psykiatrin","name":"Nationella utvecklingsteam ska stötta den specialiserade psykiatrin - Bli friskare ","description":"Portal om psykossjukdomar med App, nyheter, forum, självtester, nyhetsbrev, självhjälpsbok och länkar. Utmärkelsen God Socialpsykiatri 2008.","isPartOf":{"@id":"https://www.mysite/#/schema/WebSite/base"},"about":{"@id":"https://www.mysite/#/schema/Person/base"},"inLanguage":"sv-SE","breadcrumb":{"@id":"https://www.mysite/#/schema/BreadcrumbList/180"}},{"@type":"VideoObject","name":"Nationella utvecklingsteam ska stotta den specialiserade psykiatrin","description":"Socialministern presenterar satsning för att stodja den specialiserade psykiatrin","thumbnailUrl":"https://regeringen.se/globalassets/video-thumbnails/4f73bcebcad642caab2f2f21c88d4a95/","uploadDate":"2024-08-19T14:00:00+01:00","duration":"PT27S","embedUrl":"https://play2.qbrick.com/qplayer/index.html?accountId=3175841&mediaId=50bb67a7-1fb3-49a1-8fe1-692b3bdd6299&configId=Enterprise"}]}</script>


shumisha
Joomla! Guru
Joomla! Guru
Posts: 558
Joined: Sat Aug 20, 2005 3:15 pm
Contact:

Re: Schema.org custom does not work for embedded video

Post by shumisha » Sun Jan 12, 2025 9:20 pm

Hi,

That does not help. Again, without at least the full real page source code (no "www.mysite"), noct much can be done.
The problem is obviously not in the snippet.

Also, please clarify what you mean by "Google complains": in the search console? On the rich snippets tester?
4SEO, 4AI, 4Command, 4Podcast, 4Video, SEO and content extensions for Joomla 3, 4 & 5 - https://weeblr.com
I don't reply to PM anymore. Thanks for using our extensions.

User avatar
Slackervaara
Joomla! Ace
Joomla! Ace
Posts: 1132
Joined: Sat Aug 13, 2011 6:27 am

Re: Schema.org custom does not work for embedded video

Post by Slackervaara » Sun Jan 12, 2025 10:21 pm

It was not 4 videos but only one actually that I tried to fix and verify. Earlier verify was stopped, but now it went through and the video will be checked again by Google. Earlier I had cleared the cache prior to verify
Complaints were 3:
field thumbnail missing
Field name missing
Field uploadDate missing

But maybe its fixed after all. I have to wait what google says.

Advertisement

Post Reply

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 5.x”