Hi, are there any plans to fix this issue? C schmitz (talk) 09:46, 15 October 2024 (UTC)
Extension talk:AutoSitemap/Flow
Fixed in 1.8.2 by https://github.com/dolfinus/AutoSitemap/pull/36
putting the following in your localsettings.php seems to error out the whole wiki and return a 500 error.
$wgAutoSitemap["exclude_namespaces"] = [
NS_TALK,
NS_USER,
NS_USER_TALK,
NS_PROJECT_TALK,
NS_FILE_TALK,
NS_MEDIAWIKI,
NS_MEDIAWIKI_TALK,
NS_TEMPLATE,
NS_TEMPLATE_TALK,
NS_HELP,
NS_HELP_TALK,
NS_CATEGORY_TALK
NS_FILE
];
Well, apparently some of these namespaces does not exist. Follow this manual Manual:How to debug to detect which one is missing, and remove it from the LocalSettings.php
At my spiritwiki.org i have 2100 pages.
I get pairs : <url>
<loc>https://spiritwiki.org/w/Datei:Chakrasamvara_Vajravarahi.jpg</loc>
<priority>1.0</priority>
<lastmod>2022-03-26T15:32:45Z</lastmod>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>https://spiritwiki.org/w/Chakrasamvara</loc>
<priority>1.0</priority>
<lastmod>2023-02-12T22:11:57Z</lastmod>
<changefreq>weekly</changefreq>
</url>
and not all sites.
What do you mean by "all sites"? Maybe "all pages"? What namespaces are used in your wiki instance?
if You look at my wiki : The namespace is /w/ - all other is standard (i have now deactivated the plugin and use another sitemap)
P.S. In the wiki is a site 'All Pages'. Using the source-code of the wiki instead the code of this plugin would avoid such jpg-errors - and also would make the variable
$wgAutoSitemap["exclude_namespaces"] = [ superfluous.
No idea what I've just read
In multisite it appears as a blank page.
Hi, just to let you know this site doesn't work anymore:
https://www.google.com/webmasters/sitemaps/ping?sitemap=https://your-site.com/sitemap.xml
for this code:
$wgAutoSitemap["notify"] = [
'<nowiki>https://www.google.com/webmasters/sitemaps/ping?sitemap=https://your-site.com/sitemap.xml',
];
One now needs to go to the Google Search Console and do it through that instead.
Thanks for pull requests, merged
Someone can help me pls. When I try to generate a new sitemap.xml when editig or creating a new page it shows up: Cannot write to sitemap.xml.tmpcb70ac9268d09b5dc17297441c9ff751.tmp.
"Your MediaWiki folder should be permitted for write operations (chmod +w
with chown apache
or chown nginx
)."
In the error_log file of our site (https://sheki.org/wiki/Ana_s%C9%99hif%C9%99) , more than 100 such warnings appear in a few hours:
[17-Mar-2024 13:43:47 Asia/Baku] PHP Warning: fopen(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/shekiwik/public_html/wiki/extensions/AutoSitemap/AutoSitemap_body.php on line 311
[17-Mar-2024 13:43:47 Asia/Baku] PHP Warning: fopen(https://www.google.com/webmasters/sitemaps/ping?sitemap=https://sheki.org/wiki/sitemap.xml): Failed to open stream: no suitable wrapper could be found in /home/shekiwik/public_html/wiki/extensions/AutoSitemap/AutoSitemap_body.php on line 311...
Try setting $wgAutoSitemap["notify"] = []
to disable notifying search engined like Google that sitemap file was updated.
I don't agree. Notice comes from "Google Webmasters":
[04-Apr-2024 10:35:38 Asia/Baku] PHP Warning: fopen(https://www.google.com/webmasters/sitemaps/ping?sitemap=https://sheki.org/wiki/sitemap.xml): failed to open stream: HTTP request failed! HTTP/1.0 404 Sitemaps ping is deprecated. See https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping. in /home/shekiafn/public_html/wiki/extensions/AutoSitemap/AutoSitemap_body.php on line 311 [04-Apr-2024 10:48:33 Asia/Baku] PHP Warning: fopen(https://www.google.com/webmasters/sitemaps/ping?sitemap=https://sheki.org/wiki/sitemap.xml): failed to open stream: HTTP request failed! HTTP/1.0 404 Sitemaps ping is deprecated. See https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping. in /home/shekiafn/public_html/wiki/extensions/AutoSitemap/AutoSitemap_body.php on line 311
> I don't agree
What you don't agree with? Have you tried setting $wgAutoSitemap["notify"] = [];
?
I did this 1 hour ago. No notification or warning has been received yet. Thanks.
If i add in:
$wgAutoSitemap["exclude_namespaces"] = [
NS_MODULE
Then my site stop working.
It looks like there is no NS_MODULE global constant, so php cannot resolve its value and fails while reading settings file. Replace namespace name with its id, this is probably Extension default namespaces#820–829: Scribunto
Also read documentation how to investigate such errors: Manual:How to debug
Hi,
The AutoSitemap extension is working but it only create links HTTP, all HTTP requests redirect to HTTPS. Is there any way to get the AutoSitemap extension to create HTTPS links to avoid redirection (which I am told is bad for SEO).
Thanks in Advance
Have you read documentation of $wgAutoSitemap["server"] option?
Dumb
cant' delete this i got it working
yea where does the sitemap even go? This appears to do nothing
Please provide some information about your MediaWiki instance, like MW version, extension version, number of pages on your site, available RAM, debug logs.