XML Sitemap Not Found Notification When Sitemap Exists(v151114) #618
Comments
@patdumond Thank you very much for documenting this here. @jaswsinc I have a feeling some of these reports (especially any persistent reports of the XML Sitemap missing when it in fact exists) might be related to misconfigured servers. I've seen a fairly common issue where local DNS is not configured properly which results in the hostname for the site hosted on the server not being accessible from the server. In that scenario, ZenCache would attempt to visit the XML Sitemap and it would timeout/fail, reporting a false error (well, somewhat false; if ZenCache can't load the XML Sitemap, then the Auto-Cache Engine won't be able to find it, which means that not being able to load the XML Sitemap is a problem, no matter the scenario). We could get more descriptive with why ZenCache failed to locate the XML Sitemap (did it return a 404? was the server unable to resolve the hostname? etc.) and then link to a KB Article that documents explanations for each error (e.g., "contact your web hosting company if your server cannot resolve its own URL"). (There's a GitHub issue open here related to improving that error notice: #616) |
@raamdev writes...
Agree. @patdumond writes...
On that site, if you can run the following test it might shed light.
|
Well, I went to run that test on my stubborn site and the message had disappeared. I know it was still there yesterday afternoon, because I logged in specifically to check that before closing up everything for the night. |
Just run the code above, and below is the output:-
|
@ufufufu Very helpful. Thanks! If you wouldn't mind, can you run one more test, but this time with this alternate code snippet that uses <?php
require_once dirname(__FILE__).'/wp-load.php';
header('Content-Type: text/plain; charset=utf-8');
print_r(wp_remote_head('http://example.com/sitemap.xml')); |
The result has considerably different formatting (no line-breaks):-
|
@ufufufu Thank you. Both of those tests show that WordPress is properly identifying that you do in fact have
|
Also, are you running a WordPress Multisite Network or a standard installation? |
This is by using the... <?php
require_once dirname(__FILE__).'/wp-load.php';
header('Content-Type: text/plain; charset=utf-8');
print_r(wp_remote_request('http://imouto.my/sitemap.xml')); ...script. BTW, unless I also clear the opcache. the script's output will be cached. Also, I've configured Apache to always redirect to https and remove the www. portion of the URL using the code below in Apache configuration.
Therefore, if I load http://imouto.my/sitemap.xml on my browser, it will automatically redirect to https://imouto.my/sitemap.xml
|
@ufufufu I see that the error report you pasted shows:
That is incorrect altogether, because that's an invalid host name. Looking at your
It is stripping the It should be:
Or this would also work:
|
@raamdev One possible reason for this could be Multisite Network installations. I'm seeing this block of code where ZenCache is actually trying to find an XML Sitemap for each child blog in the network, and that's not always going to be the case; i.e., the Main Site in the Network may be the only location for the XML sitemaps. In such a case, ZenCache could be alerting site owners about child blogs that really don't matter to them anyway, and that could lead to some of this confusion. |
Yeah, after editing the relevant .conf file, now both In 'General Options', both fields contains the correct info. |
@ufufufu Thanks! And you're not running a Multisite Network, right? |
Yes, only a single standard installation. |
Related: #616 |
@jaswsinc writes...
So should we change the behavior so that by default only the Main Site is used for an XML Sitemap and then have an option (that appears when Network Activated) that allows a site owner to specifically enable "Check Each Child Blog For an XML Sitemap"? If we did that, we'd also need to update the XML Sitemap error message to mention the domain (or maybe the full path) where the XML Sitemap check failed, to make debugging this issue for a Multisite Admin a lot easier ("which Child Blog is missing an XML Sitemap?"). And in that case, it should probably also be possible for a Multisite Admin to dismiss certain notices, if, for example, they already know that a specific Child Blog doesn't have and won't have a XML Sitemap (that would be work related to #616). However, I'm a bit concerned about feature creep here. It seems like it would be better to just disable XML Sitemaps for Child Blogs (or disable error reporting for Child Blog XML Sitemaps) and leave the additional work to a feature request, if such improvements are requested. |
Yes, I agree with that approach. I don't think that's any big deal. A simple checkbox to flick that on seems worth it to me; i.e., not feature creep IMO.
That, in concert with the checkbox, sounds like a good idea to me. We can just disable error reporting for child blogs and let the log file suffice in that instance. If a network admin really wants to look closer they can go to the log for this particular aspect. Seems good enough to me. |
Next Pro Release Changelog:
|
ZenCache Pro v151220 has been released and includes changes worked on as part of this GitHub Issue. See the release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#618). |
Reference:
https://websharks.zendesk.com/agent/tickets/9511
https://websharks.zendesk.com/agent/tickets/9568
https://websharks.zendesk.com/agent/tickets/9567
https://websharks.zendesk.com/agent/tickets/9573
https://websharks.zendesk.com/agent/tickets/9583
In addition to the five tickets listed above, I've experienced this on four of my sites, including my non-Multisite test site.
After updating ZenCache Pro to v151114, this notification is displayed:
ZenCache says... The Auto-Cache Engine is currently configured with an XML Sitemap location that could not be found. We suggest that you install the Google XML Sitemaps plugin. Or, empty the XML Sitemap field and only use the list of URLs instead. See: Dashboard → ZenCache → Auto-Cache Engine → XML Sitemap URL.
Each of the above users said that they had Google XML Sitemaps installed and I verified that a valid sitemap was found on each site. Same with my four sites except I use Better Google XML Sitemaps. I have been able to get rid of the message on all but 1 of my sites by:
However, I have one site that just refuses to admit that a sitemap exists and a few of the Zendesk users have reported that the above steps did not work for them either.
The text was updated successfully, but these errors were encountered: