Extension talk:DynamicWikiSitemap/Archive 01

Allowing pages from Namespaces which are Excluded
Is there any way exclude a namespace from the sitemap but allow specific pages within that namespace?

How to install Apache + MW on Windows?
I'm using Apache + MW and would like to use DynamicWikiSitemap. Where which directory should I create ".htaccess" file and anything specific setting for windows?

How do we add the require once line?
The instructions don't say how to do this. I followed all of the instructions by putting the sitemap.php and sitemap.xsl in the same folder as my LocalSettings.php file. I then added this to LocalSettings.php:

require_once("$IP/sitemap.php");

But then I get the following error page when I load a page in my site: Fatal error: Call to undefined function wfgetdb in /home/johnsmith/public_html/site.com/w/sitemap.php on line 86 The line in question is the require once statement. I'm using MediaWiki 1.16.5 --Holygamer 13:56, 4 June 2011 (UTC)

Installation
This is not the usual extension, is a separate page. No need to register the sitemap.php at LocalSettings.php(there you can only set configuration). After copying to the root directory, just open the sitemap.php page on your site (e.g. http://coding.bezslabostei.ru/sitemap.xml). --SimonLitt 05:53, 9 August 2011 (UTC)

Error loading stylesheet
I'm using MW 1.13 and can't get the php to work... it brings up a message: "Error loading stylesheet: A network error occured loading an XSLT stylesheet: (....)". Is it because of MW's version or something else? Of course, the sitemap.xsl gets empty.

Style
Hi. Sory, I have not tested the extension on older versions. However, this error is likely to occur for other reasons. Check your copy of the sitemap.xsl file or try comment following line at sitemap.php(stylesheet will be disabled): --SimonLitt 18:10, 28 October 2010 (UTC)

Please help, I think it don't work on my site
I'm a noob. So there should be a file "sitemap.xml" in the root directory of my wiki, yes? But I don't see it there. I've followed all the steps, what was wrong? --Das steinerne Herz 23:50, 8 September 2011 (UTC)
 * At the root directory of the wiki should be a "sitemap.php" file. But you can configure URL Rewriting so that when you type in the address bar "sitemap.xml" will be executed "sitemap.php" script. It is not mandatory configuration.

--SimonLitt 07:14, 9 September 2011 (UTC)

Invalid XML tag, tag not recognized
Hi there, first of all thank you for this awesome extension. I have installed it and it works great. Only thing i ran into was this in the google webmasters. It keeps saying on line 1602 and 1603 an invalid XML tag: tag was not recognized. Can you correct this bug or if it is something I can correct, would you please be kind enough to spare me some of your immense wisdom?? Error message Line 1602    Invalid XML tag         This tag was not recognized. Please fix it and resubmit. Parent tag: urlset        Tag: br                                                                                                                               1603	     Invalid XML tag             This tag was not recognized. Please fix it and resubmit. Parent tag: urlset         Tag: b


 * Hi, can you give me your wrong sitemap file?
 * Just open sitemap.php at your browser(e.g. http://your.site/sitemap.php), save it to the file and send the file by e-mail (slsoft@bk.ru).
 * --SimonLitt 19:22, 7 October 2011 (UTC)

Awesome extension! I wish I would've come across DynamicWikiSitemap a little earlier, before Google indexed a whole bunch of older article revisions. :-)
 * - Davydog (talk) 01:47, 28 March 2012 (UTC)

Directory issues (solved)
First of all thanks for this extension! Really appreciate it!

However, I had troubles getting the extension to run properly.

I had to move the file sitemap.xsl to the very root directory - that means the folder which holds the /mediawiki directory (with localsettings.php and stuff). Otherwise I received an error message saying sitemap.xsl was missing...

Both other files (sitemap.php and siteindex.xsl) are located in the directory /mediawiki.

Then I had to make a second change:

Instead of adding this line to my .htaccess: RewriteRule ^sitemap(.*)\.xml$ sitemap.php?page=$1 [L,NC] I had to add this: RewriteRule ^sitemap(.*)\.xml$ /mediawiki/sitemap.php?page=$1 [L,NC] This is quite logical since sitemap.php is in the /mediawiki directory.

It seems to work great now.

Took me some while to understand that there is no file sitemap.xml generated which can be seen via FTP :)

Please let me know if I'm doing something wrong.

Also, (why) is this line needed in .htaccess: Options +FollowSymlinks ?

Thanks!

--Stefahn (talk) 17:28, 10 November 2012 (UTC)

Unable to exclude namespaces
Hi, I installed it and it works, except that it just refused to ignore the following commands in LocalSettings.php: $wgDynamicWikiSitemapServerBase = "http://dummipedia.jbdirectory.com"; $wgDynamicWikiSitemapExclude=array; $wgDynamicWikiSitemapExclude[-2]=1;# Media, links to just the image rather than the image description page $wgDynamicWikiSitemapExclude[-1]=1;# Special pages $wgDynamicWikiSitemapExclude[8]=1;# System messages and other important content. Already Excluded. $wgDynamicWikiSitemapExclude[10]=1;# Templates $wgDynamicWikiSitemapExclude[14]=1;# Categories, dynamic lists of other pages

What could be the reason? &mdash; PM Poon (talk) 11:32, 15 March 2013 (UTC)