Field AggregateRating produced no reviewed item specified error

More
7 years 4 weeks ago - 7 years 4 weeks ago #66932 by charlynancy
Hi,
when you test an entry with the core field voting in Google Structured Data Testing Tool, you obtain this error :
"The review has no reviewed item specified"

Here is an example on flexicontent.org site :
- URL of a tutorial page with voting :
Réaliser son site de recettes avec FLEXIcontent
- URL of testing with Google Structured Data Testing Tool ( search.google.com/structured-data/testing-tool ):
Testing page
- warning Error
The review has no reviewed item specified
- portion of HTML code concerned :
Code:
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <meta itemprop="ratingValue" content="79" /> <meta itemprop="bestRating" content="100" /> <meta itemprop="ratingCount" content="16" /> </span>
[hr]
Here is a partial solution with the number id of the entity as item specified :
in file /components/com_flexicontent/classes/flexicontent.helper.php
~line 3268
i find the code
i add <meta itemprop="itemReviewed" content="'.$id.'" />
that give :
Code:
<meta itemprop="itemReviewed" content="'.$id.'" /> <meta itemprop="ratingValue" content="'.round($percent).'" /> <meta itemprop="bestRating" content="100" /> <meta itemprop="ratingCount" content="'.$rating_count.'" />
But that only give the id (number) of the entity
i can't obtain the title (i tried without success $item->title)
Could you help me to finish a better fix about this matter?
Last edit: 7 years 4 weeks ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 4 weeks ago #66952 by ggppdk


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: charlynancy

Please Log in or Create an account to join the conversation.

More
7 years 4 weeks ago #66953 by charlynancy
Hi Georgios,
I hope you are well in this early spring.
Thank you very much for your great improvement.
I was trying to do it on Github, but, as i suspected, it's more difficult than just a line to add.

So again, Thank you very much, for your great help.

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #66976 by ggppdk
Hello

thanks for the good feedback / description in this topic , it helped to make a fix much faster


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.391 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline