Hi, I am new to this community and would be grateful for any guidance you can give.
I am constantly receiving a PHP warning whenever I create a post on my wordpress site. Below is a sample of the warning.
**PHP WARNING
**
html/thegeelongeditioncom/wp-content/plugins/df_social_media/df-social-media-oauth.php on line 533
[11-Dec-2019 02:16:53 UTC] PHP Warning: file_getcontents(https://plusone.google.com/u/0//+1/fastbutton?url=https%3A%2F%2Fthegeelongedition.com.au%2Ftag%2Fpeople-home%2F): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
This is on every single post. I can see the URL is missing but it is automatically generated so unsure how to fix the problem.
Below is a snippet of the code containing line 533 as mention in the warning message.
/**
* Get Goolge+ ones
* @return integer
*/
static function df_get_google_plus_count( $url ) {
$url = sprintf('https://plusone.google.com/u/0/_/+1/fastbutton?url=%s', urlencode($url));
preg_match_all('/{c: (.*?),/', file_get_contents($url), $match, PREG_SET_ORDER);
return (1 === sizeof($match) && 2 === sizeof($match[0])) ? intval($match[0][1]) : 0;
}
Any ideas how to rectify this problem? Much appreciated.