Google bug plus one button

I have provided the Google plus button on my website. When I click on it, the counter increments and then decreases and displays an error symbol (red exclamation mark). For several days it worked fine, but now it behaves like this.

Can someone help me solve this problem?

+6
source share
5 answers

I had the same thing on one of my sites, but vice versa. At first he did not work, then a few days later he worked again. Since then I have not seen any problems with this. I did nothing to fix it (although I tried). I surfed the Internet and read Google docs on this, but the only โ€œhelpโ€ I found was that you need to make sure your profiles are not blocked. Which profile was not clear, whether it was a user profile or a site profile, but I checked both (and they were not blocked, as far as I could tell). However, this did not surprise me, since they are still developing kinks.

If no one else comes up with a solution, just give him a couple of days before solving the problem again. I will follow up on this issue because in the end I would like to hear how your problem works.

+2
source

The same issue today had only one of many pages.

When I examined the problem more thoroughly, I found that one of the answers included JSON with an error hash code containing error 400: "Invalid value."

Then I realized that the image (one with itemprop="name" ) contains spaces. After exiting them and other special characters, the button began to work.

So, try checking your page and make sure all values โ€‹โ€‹are properly escaped.

0
source

I think Google +1 sometimes banned sites. Sometimes I get an error because the page does not refresh. When you add +1, you must be registered first, otherwise an error appears.

0
source

You just need to add the data-href attribute, so that the resulting div tag will look like

 <div class="g-plusone" data-size="medium" data-href="https://google.com"></div> 

Here I added the value https://google.com as the data-href value of this attribute. You can change it according to your requirement.

0
source

I also got this error. For me, the error was caused by the Twitter script tag just above (in the DOM) with the +1 button tag. I moved the twitter script to the bottom of the page and the +1 button now works. In short, it seems that some JS can drop this (of course), even if the code is from a reputable site (Twitter).

0
source

Source: https://habr.com/ru/post/897365/


All Articles