desti Posted February 12, 2020 Posted February 12, 2020 If copy JS block with "aggregateRating" from page and put to google https://search.google.com/structured-data/testing-tool/ you can see errors like DiscussionForumPosting - Invalid object type for field "itemReviewed" Missing Nаme for Author and other errors.
bfarber Posted February 12, 2020 Posted February 12, 2020 This is due to a change on Google's end, which we will account for in 4.5. Adlago and desti 2
desti Posted February 12, 2020 Author Posted February 12, 2020 Blocked all "aggregateRating" using if (0).
canalcripto Posted February 20, 2021 Posted February 20, 2021 On 2/12/2020 at 5:41 PM, desti said: Blocked all "aggregateRating" using if (0). Sorry, can you explain more?
desti Posted March 1, 2021 Author Posted March 1, 2021 /* Are ratings allowed? */ if(0) // AND !$topic->isArchived() AND $topic->container()->forum_allow_rating AND $topic->averageRating() ) { \IPS\Output::i()->jsonLd['topic']['aggregateRating'] = array( '@type' => 'AggregateRating', 'ratingValue' => $topic->averageRating(), 'ratingCount' => $topic->numberOfRatings(), ); } sobrenome 1
The Old Man Posted August 6, 2021 Posted August 6, 2021 (edited) This seems to have cropped up again in 4.6... Relating to Gallery images... Invalid object type for field 'itemReviewed' and also: error Review has multiple aggregate ratings Edited August 6, 2021 by The Old Man sobrenome 1
media Posted August 29, 2021 Posted August 29, 2021 It is here again Search Console has identified that your site is affected by 2 Review snippets issues: Top Errors Errors can prevent your page or feature from appearing in Search results. The following errors were found on your site: Review has multiple aggregate ratings Invalid object type for field "itemReviewed" We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search. Invision Community v4.6.5.1 sobrenome 1
Jim M Posted August 30, 2021 Posted August 30, 2021 On 8/28/2021 at 8:58 PM, media said: It is here again Search Console has identified that your site is affected by 2 Review snippets issues: Top Errors Errors can prevent your page or feature from appearing in Search results. The following errors were found on your site: Review has multiple aggregate ratings Invalid object type for field "itemReviewed" We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search. Invision Community v4.6.5.1 When was the last time the page was crawled? (Was it when you were on 4.6?) Are you able to provide an example URL so we can see the content? sobrenome 1
sobrenome Posted September 24, 2021 Posted September 24, 2021 On 3/1/2021 at 4:15 PM, desti said: /* Are ratings allowed? */ if(0) // AND !$topic->isArchived() AND $topic->container()->forum_allow_rating AND $topic->averageRating() ) { \IPS\Output::i()->jsonLd['topic']['aggregateRating'] = array( '@type' => 'AggregateRating', 'ratingValue' => $topic->averageRating(), 'ratingCount' => $topic->numberOfRatings(), ); } How to get the number o ratings and the number of reviews on Pages? $record->numberOfRatings() or $record->rating_hits are not working.
Andy Millne Posted October 1, 2021 Posted October 1, 2021 Can you please provide the full json-ld snippets that are failing validation and a link to the failing page? I'm not seeing any issues with how aggregateRating is implemented SeNioR- and sobrenome 2
sobrenome Posted October 6, 2021 Posted October 6, 2021 On 10/1/2021 at 1:36 PM, Andy Millne said: Can you please provide the full json-ld snippets that are failing validation and a link to the failing page? I'm not seeing any issues with how aggregateRating is implemented Hello @Andy Millne! I don't know if I am wrong, but I have realized that when review is on for Pages database, there is no $record->rating_hits, only $record->record_reviews as long as the rating stars will be based on the reviews, so the rating hits are the same as the record reviews. Is that right? So I have used record reviews for ratingCount and reviewCount. {{\IPS\Output::i()->jsonLd['article'] = array('@context' => 'http://schema.org/', '@type' => 'Product', 'name' => $record->_title, 'image' => 'https://cdn.mydomain.com/ ' . $record->record_image, 'brand' => array('@type' => 'Thing', 'name' => $marca['nome']), 'aggregateRating' => array('@type' => 'AggregateRating', 'ratingValue' => $englishrating, 'ratingCount' => $record->record_reviews, 'reviewCount' => $record->record_reviews), 'offers' => array('@type' => 'AggregateOffer', 'lowPrice' => $lowPrice, 'highPrice' => $highPrice, 'offerCount' => $results_number, 'priceCurrency' => 'BRL', 'availability' => $availability));}}
Marc Posted October 11, 2021 Posted October 11, 2021 On 10/6/2021 at 3:16 AM, sobrenome said: Hello @Andy Millne! I don't know if I am wrong, but I have realized that when review is on for Pages database, there is no $record->rating_hits, only $record->record_reviews as long as the rating stars will be based on the reviews, so the rating hits are the same as the record reviews. Is that right? So I have used record reviews for ratingCount and reviewCount. {{\IPS\Output::i()->jsonLd['article'] = array('@context' => 'http://schema.org/', '@type' => 'Product', 'name' => $record->_title, 'image' => 'https://cdn.mydomain.com/ ' . $record->record_image, 'brand' => array('@type' => 'Thing', 'name' => $marca['nome']), 'aggregateRating' => array('@type' => 'AggregateRating', 'ratingValue' => $englishrating, 'ratingCount' => $record->record_reviews, 'reviewCount' => $record->record_reviews), 'offers' => array('@type' => 'AggregateOffer', 'lowPrice' => $lowPrice, 'highPrice' => $highPrice, 'offerCount' => $results_number, 'priceCurrency' => 'BRL', 'availability' => $availability));}} Please could you also provide the item mentioned by my colleague there? It just means we can save some time and get to the bottom of the issue for you sobrenome 1
Management Matt Posted October 20, 2021 Management Posted October 20, 2021 This should be fixed in our November release. Marc, sobrenome and Ibai 3
Solution Marc Posted November 3, 2021 Solution Posted November 3, 2021 This has been resolved in the latest 4.6.8 release. Please upgrade to get the latest release, and let us know if you see any further issues. sobrenome 1
Recommended Posts