*

iiui awan

  • **
  • 18 posts
sitemap generator error
« on: January 09, 2022, 09:55:48 AM »
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/pakhomec/public_html/adslab.pk/oc-includes/osclass/utils.php on line 341 Warning: fsockopen(): unable to connect to search.yahooapis.com:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/pakhomec/public_html/adslab.pk/oc-includes/osclass/utils.php on line 341

*

mwindey

  • ****
  • 154 posts
Re: sitemap generator error
« Reply #1 on: January 09, 2022, 10:25:12 AM »
@iiui awan

I believe this was discussed before here on the forum but to fix the problem you need to change file: sitemap_generator from line 200 to 208 with:

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

In fact you need to disable yahoo osc_doRequest with 2 //    :D

*

MB Themes

Re: sitemap generator error
« Reply #2 on: January 10, 2022, 07:56:23 AM »
@mwindey
This was made months/years ago:
https://osclasspoint.com/osclass-plugins/backoffice/all-in-one-seo-plugin-i47#changelog

Quote
[3.1.3] Yahoo sitemap api disabled as this service was shut down
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots