Jump to content

Featured Replies

Posted

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. 

 

Solved by Marc

Go to solution

This is due to a change on Google's end, which we will account for in 4.5.

 

  • Author

Blocked all "aggregateRating" using if (0).

 

  • 1 year later...
On 2/12/2020 at 5:41 PM, desti said:

Blocked all "aggregateRating" using if (0).

 

Sorry, can you explain more?

  • 2 weeks later...
  • Author
		/* 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(),
			);
		}

 

  • 5 months later...

This seems to have cropped up again in 4.6... Relating to Gallery images...

Invalid object type for field 'itemReviewed'

62BEC5DB-7D9C-4F2F-9FD2-92F29D9A430D.jpeg
 

and also:

error Review has multiple aggregate ratings

92D66CC0-2394-479D-BF35-1F8604462EFE.jpeg.9a13414ca4f370624944aac7fe5e2a68.jpeg

Edited by The Old Man

  • 4 weeks later...

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

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? 

  • 4 weeks later...
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.

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));}}

 

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

  • 2 weeks later...
  • 2 weeks later...
  • Solution

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.

Thanks! I will check it!

Recently Browsing 0

  • No registered users viewing this page.