This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Vlad7

  • ****
  • 244 posts
Error Unable to connect to search.yahooapis.com:80
« on: February 05, 2022, 11:29:39 AM »
An error occurred in the error_log file
[05-Feb-2022 11:30:10 Europe/Kiev] PHP Warning:  fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home2/ukagroco/public_html/oc-includes/osclass/utils.php on line 344
[05-Feb-2022 11:30:10 Europe/Kiev] PHP Warning:  fsockopen(): Unable to connect to search.yahooapis.com:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home2/ukagroco/public_html/oc-includes/osclass/utils.php on line 344

Tell me how to fix it?
Osclass v8.0.1
PHP: 8.0.15

*

mwindey

  • *****
  • 475 posts
Re: Error Unable to connect to search.yahooapis.com:80
« Reply #1 on: February 05, 2022, 12:14:42 PM »
@Vlad7

Please use search function first before asking .....
This question was asked many times before so answer is here https://forums.osclasspoint.com/all-in-one-seo-plugin/sitemap-generator-error/msg31502/#msg31502

*

Vlad7

  • ****
  • 244 posts
Re: Error Unable to connect to search.yahooapis.com:80
« Reply #2 on: February 05, 2022, 03:33:14 PM »
@Vlad7

Please use search function first before asking .....
This question was asked many times before so answer is here https://forums.osclasspoint.com/all-in-one-seo-plugin/sitemap-generator-error/msg31502/#msg31502

I've had this problem before, I forgot when it was! The All in One SEO Plugin version 3.1.3 has already addressed this issue. I'm using the latest plugin version 3.3.2 and can't figure out why this old problem has come up again?
« Last Edit: February 05, 2022, 03:40:13 PM by Vlad7 »

*

mwindey

  • *****
  • 475 posts
Re: Error Unable to connect to search.yahooapis.com:80
« Reply #3 on: February 05, 2022, 03:43:55 PM »
@Vlad7

In version 3.3.2 you have to change sitemap_generator.php again to:

Code: [Select]
// PING SEARCH ENGINES WITH NEW SITEMAP - HELP FUNCTION
function ais_sitemap_ping_engines() {
  // GOOGLE
  osc_doRequest( 'http://www.google.com/webmasters/sitemaps/ping?sitemap='.urlencode(osc_base_url() . 'sitemap.xml'), array());
  // BING
  osc_doRequest( 'http://www.bing.com/webmaster/ping.aspx?siteMap='.urlencode(osc_base_url() . 'sitemap.xml'), array());
  // YAHOO!
  //osc_doRequest( 'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid='.osc_page_title().'&url='.urlencode(osc_base_url() . 'sitemap.xml'), array());
}
Or completely remove line:
Code: [Select]
// YAHOO!
//osc_doRequest( 'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid='.osc_page_title().'&url='.urlencode(osc_base_url() . 'sitemap.xml'), array());

I don't know why after all this time some things never get fixed in future updates....

« Last Edit: February 05, 2022, 03:49:32 PM by mwindey »

*

Vlad7

  • ****
  • 244 posts
Re: Error Unable to connect to search.yahooapis.com:80
« Reply #4 on: February 05, 2022, 03:55:43 PM »
Thank you very much for your reply.

Marked as best answer by frosticek on February 07, 2022, 09:21:29 AM
*

Vlad7

  • ****
  • 244 posts
Re: Error Unable to connect to search.yahooapis.com:80
« Reply #5 on: February 06, 2022, 07:29:19 PM »
In fact, the error was hidden in the Forum plugin

// PING SEARCH ENGINES WITH NEW SITEMAP - HELP FUNCTION
function frm_sitemap_ping_engines() {
  $sitemap = osc_base_url() . 'sitemap_forums.xml';

  osc_doRequest( 'http://www.google.com/webmasters/sitemaps/ping?sitemap='.urlencode($sitemap), array());
  osc_doRequest( 'http://www.bing.com/webmaster/ping.aspx?siteMap='.urlencode($sitemap), array());
  osc_doRequest( 'http://search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid='.osc_page_title().'&url='.urlencode($sitemap), array());
}

*

MB Themes

Re: Error Unable to connect to search.yahooapis.com:80
« Reply #6 on: February 07, 2022, 09:21:22 AM »
thank you, commented
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots