Arne Brachhold

Google Sitemap Generator for WordPress v2 Final

Filed under: Sitemaps, Plugins — arne on June 5, 2005
Latest release:
2.7
2005-07-21
Beta version:
3.0b6
2007-01-23
Text Link Ads
BlueHost Webhosting

This plugin generates a XML-Sitemap compliant sitemap of your WordPress blog. This format is supported by Google, YAHOO and MSN Search.

More information what XML-Sitemaps are and how they can help you to get indexed by the major search engines can be found at Sitemaps.org and the searchenginewatch blog.

If you have questions about XML-Sitemaps or run into problems, have a look at my Google Sitemaps FAQ.

Note: The XML-Sitemap format was introduced 2005 by Google and adopted in 2006 by YAHOO and MSN Search so thats why it’s often called "Google Sitemaps".

Download | Requirements | Installation | FAQ | Changelog | Donate

Want to try the new beta? Click here to get it!

Problems with your sitemap? Read my Google Sitemaps FAQ.

Features:

  • WordPress 2 compatible
  • No PHP skills needed
  • Has a user interface where you can customize all parameters like change frequencies, priorities etc.
  • Available in fourteen languages
  • Generates a static XML file in your Blog directory (Filename is customizable)
  • Can generate a gzipped version of the sitemap
  • Generates a sitemap for homepage, posts, static pages, categories and archive pages
  • Calculates a priority for each post, based on the number of comments (You can also turn this off)
  • The XML file gets automatically rebuilt if you change/edit/create/publish a post
  • Tells Google automatically about changes via Google-Ping
  • You can include external pages which aren’t generated by WordPress or are not recognized by this plugin
  • You can define a minimum post priority, which will override the calculated value if it’s too low
  • Includes a WordPress filter for other plugins which can add their pages to the sitemap

Download:
Download Icon English version:
http://www.arnebrachhold.de/redir/sitemap-dl-en/

Download Icon Language pack:
http://www.arnebrachhold.de/redir/sitemap-dl-lang/

Supported languages: Arabian, Brazilian Portuguese, English, French, German, Italian, Japanese, Korean, Polish, Portugese, Russian, Slovenian, Spanish, Swedish, Simplified, Traditional Chinese and Turkish.

Pricing and Licensing:
Good news, this plugin is free for everyone! Since it’s released under GPL, you can use it free of charge on your personal or commercial blog. But if you enjoy this plugin, you can thank me and leave a small donation for the time I’ve spent writing and supporting this plugin. And I really don’t want to know how many hours of my life this plugin has already eaten ;)
Since I’m a full-time student at the moment, I’m appreciative for every donation you leave me, no matter if it’s two or fifty dollar.

$200.00 $100.00
$50.00 $30.00
$20.00 $10.00
$5.00 $2.00

Of course I also have a Amazon wishlist, but since I live in Germany and it’s on amazon.de, you’ll probably have no account there.

Notify List:

Subscribe to get notified about new releases.

Requirements:
This plugin requires Wordpress 1.5.1.1 or better. If you are using an older version, I strongly recommend you to upgrade to the latest version. You can get it at the WordPress Download Page.

Installation:
Simply download the Zip-Archive and extract all files into your wp-content/plugins/ directory. Then go into your WordPress administration page, click on Plugins and activate it. After that you will have a new menu point called "Sitemap" under the "Options" menu. You can alter the default change frequencies, filename and other options there. Click once on "Rebuild Sitemap" to create your sitemap the first time.

The script needs write access to your Blog directory. Check out the WordPress Codex or have a look at the FAQ for help.

Installation Video-Tutorial:
Andre Chaperon created a Video-Tutorial which shows you how to install the plugin step by step! Great work, thanks for this!

Sample Output:
http://www.arnebrachhold.de/sitemap.xml or http://www.arnebrachhold.de/sitemap.xml.gz

If you have comments/problems/suggestions, see something in the code which is not compliant to the WordPress Plugin Codex, or just want to say "Yeha! It works!" drop me a mail or post at the WordPress support forum. It’s likely that you’ll get an answer for your problem faster there, because I get a lot of support emails and need some time to read and answer them all.

License and Warranty:
This plugin is licensed under the GPL. Because the plugin is licensed free of charge, I do not accept any responsibility for any damages, direct or indirect, that may arise from using the plugin. This software is provided "AS IS" without warranty of any kind. Please refer to the full version of the GPL for more details.

Sidebar Button:
If you have still space on your sidebar, you can use the following button to link to this plugin or your sitemap. Link it to your sitemap, to this plugin, to Google or wherever you like. XML Sitemap

Changelog:
+ Show Changelog

Cutout of the administration UI (WordPress 1.5), click for full image:
Cutout of the Administration Interface

205 Comment(s)

Comment by BillSaysThis

Posted on June 6, 2005

Thanks!

Comment by Chris Ladd

Posted on June 6, 2005

Thanks for this great plugin. I had it setup on my site, configured, and generating the site map in less than 5 minutes! Thanks so much for this great piece of work!

Comment by Mads Jensen

Posted on June 6, 2005

Will give it a try.
Thx.

Comment by Tom

Posted on June 6, 2005

This looks very cool, I will give it a go.

Comment by g0nk

Posted on June 6, 2005

doesnt seem to work for me. I installed the plugin, but there is nothing coming up at all for the options > sitemap page.

Comment by Steve

Posted on June 6, 2005

The XML file doesn’t save in the proper location if you you move your index.php to the server root and set the blog address to root (ie if my site is www.foo.com this plugin places the xml file at www.foo.com/wordpress/, not at foo.com root)

Comment by John Mora

Posted on June 6, 2005

Very well executed. If I might make a feature request?

* Gzip the sitemap.xml after generating it

I’ve currently got a shell script gzip’ing the output afterwards, so it’s not an issue for me, but it would be useful to add.

Thanks for the very nice plugin.

Comment by Alex

Posted on June 6, 2005

Great plugin! I am using it on both of my sites. Thanks!

Comment by Ken

Posted on June 6, 2005

I’m getting an error:
Warning: fopen(/usr/local/www/vhosts/mygolfadvice.com/htdocs/sitemap.xml): failed to open stream: Permission denied in /usr/local/www/vhosts/mygolfadvice.com/htdocs/wp-content/plugins/sitemap.php on line 540

Comment by Neil

Posted on June 6, 2005

Thanks for such an easy to use plugin. It seems to work perfectly. Much appreciated.

Comment by Christian Aust

Posted on June 6, 2005

Hi, the file sitemap.php conatins two small errors:

In line 147 it should read _e(strval($i)); instead of _e($i);
In line 344 it should read

Comment by Christian Aust

Posted on June 6, 2005

The comment parser ate my source code. :-) In line 344 it should read <php instead of <? because some sites (like mine) are configured not to use short open tags. Regards,

Christian

Comment by arne

Posted on June 6, 2005

Hi Christian,

thx for your comment! I will fix those lines and publish a new version soon :)

Regards,
Arne

Comment by arne

Posted on June 6, 2005

Hi Ken,

please check that the wp-content/plugins/sitemap.php has the right to write into your blog directory.

Arne

Comment by arne

Posted on June 6, 2005

Hi,

@g0nk: Did you activate the Plugin in the Plugings menu?

@Steve: i will check which other WordPress variables/methods i could use…

Comment by weefselkweekje

Posted on June 6, 2005

I have the same problem g0nk has… installed the plugin on my wp1.5 blog, activated it and got a blak options screen…

Comment by nikolas

Posted on June 6, 2005

I get a blank page on the otpions/sitemap admin page. I too have my wp installation not at the root dir. Maybe thats the problem…

Comment by arne

Posted on June 6, 2005

Hi,

I thinks its a problem with WordPress 1.5. Could you try to update to the current version (1.5.1.1) and test it again? Or can someone tell me how to get it work on 1.5? I thinks its a problem with the add_options_page() method at line 102.

Many thx,

Arne

Comment by weefselkweekje

Posted on June 6, 2005

Upgrading to 1.5.1.2 fixed it. Quite an easy upgrade if you use themes btw…

Happy!

Comment by Wendy

Posted on June 6, 2005

Safe mode problem when rebuilt site map :
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 2511 is not allowed to access /webcp/docs/webs/5356312447/blog owned by uid 0 in /webcp/docs/webs/5356312447/blog/wp-content/plugins/sitemap.php on line 542

Warning: fopen(/webcp/docs/webs/5356312447/blog/sitemap.xml): failed to open stream: No such file or directory in /webcp/docs/webs/5356312447/blog/wp-content/plugins/sitemap.php on line 542

Warning: fwrite(): supplied argument is not a valid stream resource in /webcp/docs/webs/5356312447/blog/wp-content/plugins/sitemap.php on line 543

Warning: fclose(): supplied argument is not a valid stream resource in /webcp/docs/webs/5356312447/blog/wp-content/plugins/sitemap.php on line 544

Comment by g0nk

Posted on June 6, 2005

Worked for me as well after upgradeing to 1.5.1.5! woo!

Comment by Brett Elliff

Posted on June 6, 2005

If you are getting the fpopen permission denied errors I figured out how to fix it in my case at least. All that you need to do is create a sitemap.xml file with random test in it and upload it to your WordPress root directory or create it there viz terminal and then make sure it has write permissions. when you rebuild it again in the options menu it should appear. :) Mine is now at http://gatewayy.net/sitemap.xml if anyone wants to see it. contact me if you need help. good luck!

Comment by Wendy

Posted on June 6, 2005

Just did it Brett and it s working, Thanks a lot
see it in
http://blog.argentine-news.com/sitemap.xml

Comment by Brad

Posted on June 6, 2005

Nice plugin, but it doesn’t seem to respect the scoring I set. I am only including homepage, posts, static pages, and I have them scored as 1, 0.8, 0.9 respectively. Both posts and static pages are being scored as 0.8.

Other than that, great work.

Comment by Rodney Shupe

Posted on June 6, 2005

To add the functionality to retrieve the last post date from categories and archives you just need to modify the SQL queries slightly.

For the Category Query make the SQL:
SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM $wpdb->posts p JOIN $wpdb->post2cat pc ON p.ID = pc.post_id JOIN $wpdb->categories c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID

For the Archive Query:
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, MAX(post_date) as last_mod, count(ID) as posts FROM $wpdb->posts WHERE post_date

Comment by arne

Posted on June 6, 2005

Hi,

@Brad, thank you for the note! I will have a look at it!

@Rodney, many thanks for your work. I will try it out! :)

Greets,
Arne

Comment by Michele

Posted on June 6, 2005

Just one minor note. It may be a simple permissions issue in my setup, but I found that it couldn’t produce the XML file in the default location, as the web server does not have permission to create or write to files there by default. The quickfix was:
touch sitemap.xml;chmod 666 sitemap.xml
and then run the sitemap generator

Comment by David W. Boles

Posted on June 6, 2005

A painless install with lots of backend plusses! Excellent work! Google sitemapped me in less than an hour. Slick stuff, this!

Comment by Rick Beckman

Posted on June 7, 2005

I am using the latest (2.1), and when rebuilding the XML file, I get this error:

WordPress database error: [You have an error in your SQL syntax near ‘ON p.ID = pc.post_id JOIN wp_categories c ON pc.category_id = c.cat_ID WHERE pos’ at line 1]
SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM wp_posts p JOIN wp_post2cat pc ON p.ID = pc.post_id JOIN wp_categories c ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID

All else seems to work fine.

Comment by arne

Posted on June 7, 2005

Hi,

there was still a hardcoded table name in the SQL query. Please dowload the current version again and it should work.

Regards,

Arne

Comment by Jens

Posted on June 7, 2005

I just downloaded it and got the same database error.

Regards,

Jens

Comment by arne

Posted on June 7, 2005

Hi,

I’m sorry but I can’t reproduce this error. I tested again on this, an other and a new clean installed blog with an custom table prefix. Can you execute the query in phpMyAdmin? Which MySQL version do you have?

Regards,

Arne

Comment by Jens

Posted on June 7, 2005

Hi,

I have version 3.23.56 of MySQL and Wordpress 1.5.1.2

Regards,

Jens

Comment by Jens

Posted on June 7, 2005

Hi,

The current version works great.

Thanks.

Regards,

Jens

Comment by arne

Posted on June 7, 2005

Hi,

it was MySQL 3 which didn’t unserstand the JOIN syntax of the category SQL.
Fixed now, MySQL 3 users please download the new 2.12.

Regards,

Arne

Comment by Scott McGerik

Posted on June 7, 2005

I had to modify function sm_getXmlPath() by hardcoding the path to my blog directory because get_home_path() was returning a directory (/dh/cgi-system/php.cgi/) for which I had no write permissions.

I suspect my webhost (Dreamhost) is performing virtual directory trickery or something like that.

Comment by colbert

Posted on June 7, 2005

will this work on WordPress 1.5.1.2 ???

Comment by arne

Posted on June 7, 2005

Yes, I didn’t test it but there should be no problems.

Comment by Sameer

Posted on June 7, 2005

Thanks. It works beautifully!!!.

Comment by rob

Posted on June 7, 2005

Thx for this great plugin!

Comment by Shahab

Posted on June 7, 2005

Great plugin .. Thanx buddy ..:) ..

You can submit your Sitemaps to Google at this page

Comment by Alex

Posted on June 8, 2005

Thank you very much!

Comment by Smash

Posted on June 8, 2005

If you have comments/problems/suggestions, see something in the code which is not compliant to the WordPress Plugin Codex, or just want to say “Yeha! It works!” please comment or mail me.

YEHA! IT WORKS! :D

Comment by Robert Accettura

Posted on June 8, 2005

Looks great.

Personally I would have went with static generation (perhaps used a script named wp-sitemap.php). Since many hosts setup php only as a php module, forcing people to output files as nobody, creating permission issues. Others disable fopen().

But this works.

Comment by Jalansutera

Posted on June 8, 2005

Yesss… thank you very much. I have installed it at my weblog…

Comment by Scott Yang

Posted on June 8, 2005

Hi. A little problem with the <lastmod>…</lastmod> generated. It uses the post modified date, but then forces the GMT timezone on it. It should try to use the database field ‘post_modified_gmt’ instead.

Comment by Brett Elliff

Posted on June 8, 2005

Wendy

That’s awesome to hear and I am glad I could help! :D If you upgraded to 2.12 you need to use the same trick to make the sitemap.xml.gz as well. You can see mine at http://gatewayy.net/sitemap.xml and http://gatewayy.net/sitemap.xml.gz. If you need more help just drop by my site and post a comment, mail me, or use my shoutbox in the side bar. :) Good luck! :)

Comment by Dirk

Posted on June 8, 2005

Hi, thanks for this great plugin! Works fine for me :)

MANY THANKS!

Comment by Bolt

Posted on June 8, 2005

Great plugin, good work!

Comment by Luis

Posted on June 8, 2005

This is a really good plugin! thanx!

Comment by Chuck Reynolds

Posted on June 9, 2005

Excellent addition to WP! Thanks much - I love it!

Comment by Kevin

Posted on June 9, 2005

I’m having a bit of trouble getting the plugin to work. It installs fine but I get a really weird ‘Current Path’ in the options page.

The ‘Current URL’ is correct, with the sitemap.xml at the root of my site. However the ‘Current Path’ has ‘/cgi-bin/php/’ in it, which isn’t even a path that exists on my system!

Any suggestions?

Comment by arne

Posted on June 9, 2005

Hi Kevin,

did the auto-creation of the .htaccess file for permanent links work?
My plugin uses the same method to get the path, so it should work too.

Regards,
Arne

Comment by Alistair Wilson

Posted on June 10, 2005

As my blog is hosted in a folder then I only get the sitemap for the WP part. It would be nice to include the root domain as standard with a priority on all sitemaps just to let the googlebot spider also work through that top level also.

Thanks

Comment by arne

Posted on June 11, 2005

Hi,

thanks Alistair for this suggestion, maybe i include it in the next release!

arne

Comment by James

Posted on June 11, 2005

Thank you! Only thing I needed to do was hack a line into sm_Buildsitemap to add in a URL for my gallery installation which is integrated with the wp theme, but isn’t seen by wp. Might be worth adding an option in admin to add a few additional urls explicitly?

Comment by George

Posted on June 11, 2005

Hey,

It looks like I got this working and I submitted my site map to google. I did have to go to my root directory and allow write permissions. I hope this doesn’t create a security risk.

Comment by arne

Posted on June 11, 2005

@James: I decided to include this in the next release. Maybe tomorrow…

@George: If the files were created the first time, you can change the file permissions so only the sitemap files are writeable. But if you change the filename in the admin UI, you will have to create the files manually.

Comment by James

Posted on June 11, 2005

Great, I’ll look out for it. I also added a simple curl function to my implementation to ping Google whenever the map changes. I’ve TrackBacked so you can see if it’s any use …

Comment by Derik

Posted on June 11, 2005

I currently have my site hosted by Dreamhost. PHP is run as CGI and the path being generated isn’t right (but I’m having problems with htaccess being written too). Just wanted to let you know.

Comment by Jack

Posted on June 12, 2005

I have a problem where the the “sitemaps” button does not display in the options page. other than that, it seems to work fine. i’m using 1.5.1.2

Comment by arne

Posted on June 12, 2005

Hi Jack,

did you activate the plugin? The Sitemap button should be on the secondary menu at the right side if you click on options.

arne

Comment by Iain Cheyne

Posted on June 13, 2005

It would be great if this could be integrated with http://wp-plugins.net/.

Thanks!

Comment by arne

Posted on June 13, 2005

Hi Ianin,

the next version will be available with One-Click-Install at http://wp-plugins.net/

Regards,

Arne

Comment by Matt Spong

Posted on June 13, 2005

I found a small bug - the sitemap is not automatically regenerated when a post is created using the XMLRPC API’s, only when it’s posted through the admin interface.

Comment by Christian Gau

Posted on June 13, 2005

Great Plugin. Just installed the latest version. Works for me. Thanks!!!

Comment by Dean

Posted on June 14, 2005

When running the updated wp-mail.php script, I always get this error at the end:
Fatal error: Call to undefined function: get_home_path() in /…./…./public_html/blog/wp-content/plugins/sitemap.php on line 402

Comment by Johan

Posted on June 14, 2005

Wow! This is reallly a great plugin! Got it working in 5 minutes!

Here is the result: http://www.vanderwijk.com/sitemap.xml

Thanks

Comment by Sidney

Posted on June 15, 2005

Perhaps you’re interested in a plugin that informs Google automatically if you publish, edit or delete a post. It also features real timezones and a min priority for posts (so that none ends with “0.0″). Most (all?) of the features of Arne’s plugin are in it, too.

http://www.sidney.ws4f.us/2005/06/13/google-sitemap-plugin-sidney-edition

Sid

Comment by erol

Posted on June 15, 2005

Doğru bilgiye ulaşmanın en kısa yolu

Comment by reallybites

Posted on June 18, 2005

i have generated a sitemap after clicking the rebuild.So does this mean now google have my sitemap? or i have to submit it manually to google?

Comment by arne

Posted on June 18, 2005

Hi reallybites,

if you activated the Google Ping (notify Google about changes), Google knows your sitemap location. You can also create a Google account and submit the sitemap manually.

Regards,

arne

Comment by Fileadmin

Posted on June 20, 2005

The function get_home_path() is not defined!!
Please insert in the beginning of sitemap.php:

require_once(ABSPATH . ‘/wp-admin/admin-functions.php’);

Comment by Ryan Waddell

Posted on June 21, 2005

I tried manually rebuilding a sitemap, but it doesn’t seem to work. I got the plugin installed and activated,I manually created an empty sitemap.xml and sitemap.xml.gz in my root dir and chmodded them to 666, and when I click rebuild it doesn’t give me any error messages, but at the same time sitemap.xml and sitemap.xml.gz remain as 0 bite files. Any idea? I’m using the latest WP (1.5.1.2 or whatever crazy number it is).

Comment by Ian McKenzie

Posted on June 21, 2005

I’ve installed and activated the plugin, but when I try and build the sitemap.xml file for the first time, I get the following error: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in /var/www/html/wp-includes/functions.php on line 900

Comment by arne

Posted on June 22, 2005

Hi,

@Fileadmin: Thanks for the note! I will include it in the next release.

@Ryan Waddell: Are there any error messages on the screen when you click on the Rebuild button?

@Ian McKenzie Which WordPress Version do you use?
Regards,

arne

Comment by Henrik

Posted on June 22, 2005

Fantastic plugin! And with the latest version it has all the things that I was just beginning to consider hacking myself. Thanks!

Comment by Ian McKenzie

Posted on June 22, 2005

I’m using WP 1.5.1.1

Comment by Ryan Waddell

Posted on June 22, 2005

No error messages at all. I click the button, and nothing happens. The page looks like it *tries* to do something (you get the page loading stuff happening) but then nothing. No error, no file, nothing.

Comment by Richard Martin

Posted on June 25, 2005

Great Idea!! Thanks for making this…

Unfortunately this isn’t working for me…I’m using a php script to add content (The script uses the above mentioned XMLRPC API I think). to my wordpress blog based on a chron command……

The only time the sitemap will updated is when I manually enter a post threw the admin panel (EG test test)….

Outside of that, it doesn’t work…

Thanks again,

Rich

Comment by Alastair

Posted on June 25, 2005

Hi Arne, Thanks for a great plugin. Encountered an error when using it via MarsEdit though. There I was editing an existing post, and I get an XML-RPC error:

Call to undefined function: get_home_path() in /home/girtby/public_html/wp-content/plugins/sitemap.php on line 355

I have a log of the entire transaction - email me if you want it. This is WP 1.5.1.2, sitemap 2.55. Error occurs when editing an existing post, seems to work OK for new posts.

Comment by arne

Posted on June 25, 2005

Hi,

I will check how to make it work with the XML-RPS functions, maybe I just have to include a file….

arne

Comment by John

Posted on June 26, 2005

Hi, keeping the sitemap up to date seemed like an impossible task for a blog… but this awesome plugin sure did the trick. Not really sure how much good making a sitemap will do, but at least with this plugin I don’t have to waste any time revising it. Thanks so much for making it!

Comment by Elana

Posted on June 30, 2005

The default filepath for my site didn’t seem to match the hook which was generating it. I modified the file to generate a new manually allowed filepath by adding a new field sm_b_filepath and setting it as necessary. This helped, but I thought you should know there’s an issue with generating default filepaths the way you have it set up.

Another option would be to use CURL libraries in PHP to create the files in the correct WordPress directory, but this wouldn’t allow for customization of the location of the sitemap if it’s to be located in the parent directory for users who’s index.php is not located in the WordPress directory.

Comment by shawn

Posted on July 1, 2005

I also get Fatal error: Call to undefined function: get_home_path() in /home/public_html/blog/wp-content/plugins/sitemap.php on line 355 using 2.5 and the wp-mail script. This happens just after running the wp-mail script (as maintained by http://www.economysizegeek.com/) This in effect causes all of my email posts to arrive with the category incorrectly set to UNCATEGORIZED. I do not have a category named this but whenever the sitemap plugin in activated this is what happens. After simply editing the article then the category is correctly set.

I would like to use your plugin so I hope this is something that is fixable.

Comment by MacManX

Posted on July 2, 2005

My blog is at http://www.domain.com/wordpress , and a known oddity in WordPress is that it will not allow you to add the trailing slash to the end of a directory. Unfortunately, this causes a rather large problem with this plugin. The plugin enters http://www.domain.com/wordpress as the blog’s homepage (without the trailing slash) while the sitemap.xml file is located at http://www.domain.com/wordpress/sitemap.xml . This causes the blog’s homepage to be ignored by Google Sitemaps, because the “URL [is] not under [the] sitemap domain.” In this scenario, Google Sitemaps sees “/wordpress” as different than “/wordpress/”.

Comment by Juan Carlos

Posted on July 2, 2005

This is a great tool. Thaks for all your work.

JC

Comment by MacManX

Posted on July 2, 2005

I managed to solve the problem by changing line #982 of sitemap.php to:

$s.=sm_addUrl(get_bloginfo('url').'/',mysql2date('Y-m-d\TH:i:s+00:00', get_lastpostmodified('GMT'), false),sm_go("sm_cf_home"),sm_go("sm_pr_home"));

Comment by Lawrence Tureaud

Posted on July 3, 2005

I WANT TO JACK OFF ALL OVER YOUR FACE - great program

Comment by arne

Posted on July 3, 2005

Hi,

thanks to all bug reporters! I’, currently testing the next release which will fix all this problems. It will work with wp-mail and you can define a custom location for your sitemap file. Probably i will make it available for public tomorrow.

arne

Comment by Dan Atkinson

Posted on July 5, 2005

Hi there.

Excellent update which solves the main problem I’ve had with the plugin (being able to change the directory of the sitemap file).

Google always refused to enter my Wordpress directory (which is where my blog is held) and so it never used to get crawled. Now that problem’s been sorted, it works great! Thanks very much for an extremely useful plugin!

Comment by Sam

Posted on July 7, 2005

Hi,

very nice plugin! Thanks!

Comment by Thomas

Posted on July 7, 2005

Yeah! I love this plugin!

Comment by Rob

Posted on July 9, 2005

Works great!

Comment by Kevin

Posted on July 10, 2005

Wow, thank you!

Comment by shaun

Posted on July 11, 2005

I get the following message when I click on rebuild site map. Any help appreciated. Thanks

Could not write into /home/valveinc/public_html/articles/sitemap.xml

Could not write into /home/valveinc/public_html/articles/sitemap.xml.gz

Comment by arne

Posted on July 11, 2005

Hi shaun,

make sure the directory is writeable.

Q: I get an fopen error and / or permission denied
A: If you get permission errors make sure that the script has writing rights in your blog directory. Try to create the sitemap.xml resp. sitemap.xml.gz at manually and upload them with a ftp program and set the rights with CHMOD. Then restart sitemap generation on the administration page. A good tutorial for changing file permissions can be found on the WordPress Codex.

Comment by Howard

Posted on July 12, 2005

This should be the plugin of the year ;) THANK YOU!

Comment by Jeff Walters

Posted on July 12, 2005

Hi Arne

Installed it on the weekend no problems, but unfortunately I have got the following back from Google : URL not under sitemap domain

What is wrong with these:
http://intellinova.com/19/are-you-getting-the-most-out-of-your-database/
http://intellinova.com/23/direct-mail-dont-assume-just-test-and-track/
http://intellinova.com/category/database-marketing/

The last is a category template, but the first two are merely posts.

How do I fix this?

Thanks

Jeff

Comment by Bas

Posted on July 12, 2005

This plugin is great, it worked fine for me.
That was until I moved to a new host. Now I get this error (it’s on every single page in my blog!):
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/sitemap.php on line 345
This didn’t happen on my previous host. I also tried reinstalling the plugin, but I got the same error again.
I don’t know what the problem is, but I hope you can find that out…
My current host runs ‘PHP Version 4.4.0 with Hardening-Patch 0.3.2′

Comment by arne

Posted on July 12, 2005

Hi Jeff,

did you submit your sitemap to google with or without the “www”? This is important because google will not accept URLs which are not at the same domain. I tried to submit your sitemap without the “www” and it worked.

@Bas: Try to get to the Sitemap Plugin options page and click on “Save Options”. This will resave the options and override the corrupt entrys.

arne

Comment by Timo Ostrowsky

Posted on July 14, 2005

Habe ein kleines Problem beim installieren! Habe den Ordner in die PlugIns geschoben, die zwei Files erstellt (sidemap.xml und sidemap.xml.gz) und diesem Ordner Schreibrechte (0777) gegeben. Das ganze aktiviert und und Optionen auf Sidemap geklickt. Statt der Sidemap-Verwaltung kommt nur ein Verweis, das die datei sidemap.php nicht unter wp-admin zu finden ist. Was habe ich falsch gemacht?

Comment by Jeff Walters

Posted on July 15, 2005

Hi Arne

Thanks for the feedback - it was the www. prefix that was confusing Google. Strange - with thier expertise, I thought they could work around this …

Some feedback. After weeks of having my Wordpress site up and no action, two days after (correctly) running your plugin/setting up Google, I am indexed, have page ranks on all my pages, and people are picking up some of my aritcles.

Thanks for a great plugin.

Regards

Jeff

Comment by arne

Posted on July 15, 2005

@Timo:Hmm, mir fällt leider im Moment kein Grund ein warum das passieren könnte. Wenn Du mir per himself [at] arnebrachhold [dot] de deine Wordpress Zugangsdaten schickst könnte ich mal nachschauen. :)

@Jeff: Yes, it’s important because Google doesn’t realize that http://….com and http://www…com are the same. I would recommend to set up a .htaccess file which redirects all request with www to the location without. If you do so, Google will use only one of the URLs.

Comment by torbjon

Posted on July 15, 2005

best

Comment by Abdul Mueid

Posted on July 15, 2005

Working Fine with Wordpress 1.5.1.3

Comment by jim

Posted on July 15, 2005

hi, wondering whether you have had any complains about the plugin not able to write the file for hosts under Dreamhost. I have chmod both dir and the files to be writable, even tried 777 but the file just can’t be written.

any suggestions? thanks.

Comment by arne

Posted on July 16, 2005

Hi jim,

have a look at the sitemap.php at line 1205. There is a function to open the sitemap file with an @, which disables the error message.
$f=@fopen($fileName,"w");
Remove the @ sign and recreate the sitemap file. You should get a better error message why it fails.

arne

Comment by Tobias Bergius

Posted on July 20, 2005

Greate plugin, Arne!

I translted it to Swedish, here’s the files if you want: http://www.tobiasbergius.se/lab/sitemap-gen-swedish/

Comment by Sid Hale

Posted on July 20, 2005

When adding “Additional Pages” to the Sitemap Generator, I enter the current date in the form YYYY-MM-DD. After clicking on “Save Page Changes”, the page refreshes with the date in the form YYYY-DD-MM.

Adding another external page causes the date in the original entry to morph into something that still looks like some variation of a date, but it’s about 350 days in the future (i.e. 2006-07-08).

Other than that, everthing seems to be working great. I just noticed that a recent update corrected a problem with wp-mail, so I’ll be downloading the newer version as soon as I finish this post. Great plug-in!

Thanks

Comment by arne

Posted on July 20, 2005

Hi Tobias,

thank you very much :) I will include it in the next release!

@Sid,

thanks for your comment. You are right, the date gets incorrect because it’s displayed as YYYY-DD-MM instead of YYYY-MM-DD. I will fix it soon :)

arne

Comment by Stephen

Posted on July 22, 2005

Hi Arne,

Awesome script indeed. Brilliant idea and I really appreciate it. I seem to be having one major problem though. I am a Wordpress newbie and have installed Wordpress in my root domain and it is displaying just fine as it should be.

The problem I am having though is when I submit the sitemap to Google sitemaps. I get the message Denied URL which makes me assume the permissions are incorrect. I have tried various ones but still cant get it right. Are there specific permissions I need in the WP-content folder and other Wordpress folders as well as the domain for this to work.

If you know of the solution to this I would really appreciate it.

Thanks once again

Stephen

Comment by Jan

Posted on July 25, 2005

Thanks for this great plugin!

Comment by bob

Posted on July 26, 2005

fantastic plugin! thank you!

Comment by Clint Dixon

Posted on July 27, 2005

I installed the plug in and after following the instructions received a 404 error file not found wpadmin/sitemap.php

I placed a copy of the sitemap.php file in the wpadmin folder and that brought up a white screen after clicking the sitemap button under options

Comment by Ryan Pham

Posted on July 27, 2005

Works great man :) easy to install and setup. Dont need to find those sites that create sitemaps anymore. Thanks for this script

Comment by john cowburn

Posted on July 27, 2005

Hi Itried to download the enlish version using firefox browser and nothing happened. I then tried using explorer and I got an content advisor message stopping me viewing the page. what can I do next?

Comment by Corey

Posted on July 28, 2005

Excellent plugin, worked first try, thanks.

Comment by Phil

Posted on July 28, 2005

Hi,

I’ve installed the plugin as mentioned and nearly everything works fine.
The sitemaps.xml file is located at www.NAME.com while my blog is at www.NAME.com/blog/.

I added “http://www.NAME.com/index.html” and “http://www.NAME.com/blog/index.php” to teh additional pages.

Everything except Autoping to goole works. If I hit the manual rebuilt button, I get an empty screen. :-(

I get the status message, that everything was ok, only when deactivating Auto-Ping the option: ‘Google Sitemaps. This option will automatically tell Google about changes.’

Any suggestions, what can be wrong?

Comment by rakhmat

Posted on July 29, 2005

That was cool!
now i wonder, can i generate html pages from the xml output so ‘an ordinary person’ can read and follow the link easy

Comment by arne

Posted on July 30, 2005

Hi rakhmat,

it would be possible to transform the sitemap with XSLT or just css to a human readable page. However, because the sitemap.xml contains no page titles it would be hard to create a useful sitemap…

Comment by ras

Posted on July 31, 2005

got a problem, it creates the files and they are OK to google, but while creating em it says cant send pint to google, whats that? no errors, worked from the first try.

1.5.1.3 2.7

Comment by ras

Posted on July 31, 2005

btw how do I know that google has the latest version of sitemap.xml from my site when Im updating it? (taking into the consideration Im having this Could not send ping to Google message while creating the xml file?

thx in advance.

Comment by Cyrris

Posted on July 31, 2005

Nice plugin, everything is working fine for me. I wonder though, it says the total comments on my site as 893. I know I actually only have 798 (a comment counter plugin tells me that), though it does make some sense - 105 spam comments being deleted seems about right. Would it be possible not to include these deleted ones in the overall comment count? Non-existent spam comments should not affect the prioirty ranking of a post. And with some blogs, I dare say the percentage of deleted spam comments is much higher than that of my own blog.

Also, I am just wondering if a different way of calculating priorty might be better? The most commented entry on my blog has had 40 comments, and out of 893 it doesn’t get any points according to the generated XML page, but it’s by far the most visited and commented blog entry on my site. Would it be better to measure the difference from the average, rather than the total comments?

Comment by ras

Posted on July 31, 2005

I still dont get it, why calculating priorty using the comments system (including the spam? - looks like a bug to me) if you can set the priority by hand?
ras

Comment by arne

Posted on August 2, 2005

@ras: Create a google account and submit it again. Google will check your sitemap file frequently for changes.

@Cyrris: Yes, your are right. The spam comments are currently included in the comment count because i didn’t use the spam feature and didn’t know that spam posts remain in the database. I will change this behavior as soon i have time for that. Difference from the average is also a good idea, i will try it… Thanks!

Comment by Wayne

Posted on August 3, 2005

re: your add_options_page() bug, I think this is the fix for users of WP

Comment by Wayne

Posted on August 3, 2005

your blog ate part of my comment. Will try one more time to point you to information on getting around the options page bug. The URL is: http://www.acmetech.com/blog/2005/04/08/wordpress-15-options-page-plugin-bug/

Comment by Vamsi

Posted on August 7, 2005

Well, things are just getting better and better for the wordpress community.
Now it looks like the ultimate blog tool which cannot be dominated by any other how much ever it is triend.

Arne, thanks for the great plugin. I am impressed that this can also let us add URLs that are not generated by wordpress. That really sounds cool.
The Proximity calculator sounds too cool.

Keep up the good work buddy.

Comment by abhishek

Posted on August 10, 2005

i just installed it on my site and its working great. thanks for the wonderful plugin.

Comment by Frank

Posted on August 10, 2005

What do you mean here: The script needs write access to your Blog directory? So just tell us directly what we should do. which file should we CHMOD? Do you mean I need give chmod 777 to sitemap.php?
Thanks

Comment by dirk

Posted on August 11, 2005

Hi,

I always get a ‘couldn t find server’ when I push the rebuilt sitemap option. What could that be ?

Comment by Mark J

Posted on August 13, 2005

sm_cpages option wasn’t set to autoload, creating another MySQL query. Make sure when you create the option it is set to autoload.

Comment by arne

Posted on August 13, 2005

Hi Mark,

the sm_cpages option contains serialized instances of the sm_page class. If you set auto load to true, WordPress will try to unserialize the option without the knowledge of the class which results in an error. You can only unserialize such values after the class declaration.

Regards,

arne

Comment by Brian Stucki

Posted on August 15, 2005

Incredible plugin. Thanks for making it so easy for the rest of us.

Comment by Christine D.

Posted on August 17, 2005

I have a plugin that doesn’t work with wordpress 1.5, but does work with slightly higher versions.

I found that if I moved all of the files directly into the plugins folder (instead of having them in a subfolder) made it work OK.

(It’s probably just as easy to get people to update to a newer version of wordpress, though (; )

Comment by LG

Posted on August 18, 2005

Hello,

nice plugin! But please, provide an email alert or mailing list about new versions.

Comment by Indigo Clothing

Posted on August 19, 2005

Excellent tool for our promotional Clothing blog. Thank you.

Alex Walker

Comment by Ti-Jae

Posted on August 25, 2005

I just implemented this and it was as easy as 1-2-3. Thank you!

Comment by Ronnie

Posted on August 26, 2005

Anybody seen this error when running the sitemap rebuild?

WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
SELECT category_nicename FROM wp_categories WHERE cat_ID=

Any help would be kindly appreciated!

All the best,

Ronnie

Comment by Unteins

Posted on August 26, 2005

Your plugin and the Simple Asides Plugin (http://www.mikexstudios.com/simple-asides/) don’t seem to play well together. Basically, when your plugin is activated, it stops the asides from working.

Also, when I have your sitemap plugin activated, this post http://somuchgeek.com/2005/08/23/enforcing-the-law-facism/ gives an error in the browser. Currently the plugin is off, but I can coordinate with you a time to turn it one if you need to see the error for yourself. The error occurs in Safari and says:

Safari can’t open the page.
Safari can’t open the page “http://somuchgeek.com/2005/08/23/enforcing-the-law-facism/”. The error was: “lost network connection” (NSURLErrorDomain:-1005)

Comment by macgirl

Posted on August 27, 2005

Make it easy on the user who is looking to download your wordpress plug in. Have one button labeled download and html it so that it leads directly to http://www.arnebrachhold.de/get/sitemap/sitemap.zip

Salut
macgirl

Comment by Lloyd

Posted on August 30, 2005

Great tool, but we seem to have a slight problem When Google crawls us it returns a couple errors:

HTTP_ERROR

You can see there are // at the end of the URL. We have multiple categories, and it only happens on those 3. Any ideas?

Thank you in advance.

Comment by arne

Posted on August 30, 2005

Hi,

@Lloyd Hmm, I don’t know why google adds an slash at the end of the url. The sitemap.xml contains the correct URLs only.

Regards,

Arne

Comment by Bill Toomey

Posted on August 31, 2005

Absolutely fantastic tool. I’ve already installed it on my 3 blogs and will be using it regularly!!

Comment by dan

Posted on September 1, 2005

Hi,

what file shoud I call in a cron job? Shoul I simply run: php sitemap.php or do I need to put some additional info?

Comment by arne

Posted on September 1, 2005

Hi dan,

you don’t need to run a cronjob. The sitemap file gets upadated every time you edit or publish a post.

arne

Comment by Steffen

Posted on September 6, 2005

Thank you for this great plugin!

Comment by Jürgen

Posted on September 9, 2005

Danke :)

Comment by Eiso

Posted on September 10, 2005

I was wondering if I can turn off the option that it rebuilds the sitemap everytime I edit a post. It’s because it takes so long.

Comment by fukami

Posted on September 10, 2005

Google refuses to read my sitemap, but I cannot find an error :-\
Do you have an idea?

One suggestion: Since there are some optional values, there should be the possibility to not export lastmod and priority.

Comment by BenM

Posted on September 13, 2005

The plugin works great, however it apepars to generate a sitemap.xml for future posts as well as existing posts. This could create a problem when creating posts for a future date because Google will visit the URLs for those posts, even though they won’t have any content until the date/time of their post.

Comment by arne

Posted on September 13, 2005

Hi,

@Eiso: Are you sure that it needs so long to generate the sitemap? Try to deactivate the plugin and edit the post again. Maybe ping-o-matic (or another ping service) was busy and WordPress waited for a response.

@fukami: I submitted your sitemap with my account and it was marked as OK. Could you give me more informations about the error?

@BenM: What do you mean with future posts? Drafts should not be included…

arne

Comment by Jeriko

Posted on September 14, 2005

Maybe it’s just me, but since the installation of the plugin I can’t any statistics to work, neither WP-Shortshat, nor Webalizer. No more hits are counted. Or is it just some mistake i’ve made?

Comment by BenM

Posted on September 14, 2005

A lot of times when I won’t be able to update my blog for a while, I’ll write several posts and put the dates on them into the future. That way I put out fresh content ever couple of days rather than just a pile of posts on one day. If you publish a post in Wordpress with a date in the future, the post won’t show until that date. So the permalink for that post won’t have any content. But the sitemap is still generated for those future posts.

Thanks!

Comment by brandon wilcox

Posted on September 15, 2005

i used this program to generate my xml sitemap for google and it works great

brandon

Comment by Francesc

Posted on September 17, 2005

These are the changes I’ve made to try to improve the post priority based on comments. It simply ignores spam when counting comments and calculates posts priority basing on most commented post (not the sum of all of them).

1) In sm_getComments() function change line 1027 for this one:

$commentRes=$wpdb->get_results("SELECT `comment_post_ID` as `post_id`, COUNT(comment_ID) as `comment_count`, comment_approved FROM `" . $wpdb->comments . "` WHERE comment_approved NOT LIKE 'spam' GROUP BY `comment_post_ID`");

2) In sm_buildSitemap() function change line 1084 ($commentCount=sm_countComments($comments);) for these ones:

$commentCount = 0;
foreach ($comments as $postCommentCount) {
if ($commentCount

Comment by Dmitri Von Klein

Posted on September 19, 2005

I’m getting the following errors:

atal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 12 bytes) in /var/www/html/wp-includes/functions.php on line 265

Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 0 bytes) in Unknown on line 0

The only time it works is when posts are not included, is there a work around this?

Comment by Dmitri Von Klein

Posted on September 19, 2005

I was able to solve memory issue by increasing amount of allow memory from 8 to 9m in php.ini

I have over 1100 entries, I can also confirm that this plugin works with latest build of WP 1.6 Alpha

Thanks for the great work!

Comment by shawn

Posted on September 20, 2005

great plugin! Thanks.

A suggestion, when adding Additional pages it would be nice if the last changed date could be autofilled for “today”.

Again, thanks for the plugin.

Comment by Mitch McAlister

Posted on September 20, 2005

awesome.
at first the options page had nothing in it, but once I upgraded to wordpress 1.5.2 it worked like a charm.

thanks again

Comment by huphtur

Posted on September 20, 2005

Arne: the sitemap doesn’t seem be auto generated if a user with a lower level (4, 5)writes a post.

Comment by vodkamattvt

Posted on September 20, 2005

You are probably already aware, I think someone else posted this in spanish? But this plug-in does not work with Popularity Contest for some reason. Any ideas?

Comment by arne

Posted on September 20, 2005

Hi,
i uploaded a fixed version which is more compatible to other plugins like WP-ShortStats and Popularity Contest. I’m very busy at the moment so I don’t announce it on the page in a seperate post for now. The new version-number is 2.7.1.

Hallo,
ich habe eine neue Version des Plugins hochgeladen, welche mehrere Probleme mit anderen Plugins wie z.B WP-ShortStats behebt. Da ich im Moment sehr wenig Zeit habe, kann ich leider kein extra Posting dazu machen. Die neue Versionsnummer ist 2.7.1

arne

Comment by Jason

Posted on September 21, 2005

Thansk for the great plugin..
im adding it to all my wordpress sites..
keep up the great work

Comment by SlingBox

Posted on September 21, 2005

Thank you for creating this plugin, it’s extremly helpfull.

Comment by Mark thompson

Posted on September 21, 2005

Thank you for adding this

Mark

Comment by Beth

Posted on September 23, 2005

I love this plugin!

Maybe this is a dumb question, but is it possible this plugin might be interfering with sending pings/trackbacks to other sites? They aren’t getting sent, and it APPEARS to have started being a problem about the time I started using this plugin. I’m at a loss at this point and I’m just trying to narrow things down.

Also, huphtur said above, “Arne: the sitemap doesn’t seem be auto generated if a user with a lower level (4, 5)writes a post”
Is this so, and if so, is there a fix?

Comment by Antonio

Posted on September 25, 2005

Hi there!
Great plugin :) Creating two emtpy files, uploading them, chmoding them 666 and then creating the sitemaps work right away!
Thanks Arne.

Antonio

Comment by arne

Posted on September 27, 2005

Hi,

i’m very busy at present and don’t have the time to check the bugs posted above.
I’ve began my High School Graduation (Fachhochschulreife) two weeks ago and have to learn very much. I will check and eventually fix these bugs as soon as possible.

arne

Comment by Beth

Posted on September 28, 2005

Nevermind my comment from 9/23/05 - problem was unrelated to this. Thanks and good luck with school!

Comment by thesuperstar

Posted on October 5, 2005

awesome, thanks.
be sure to go your google sitemap account and “verify” site.

Comment by Scott Hendison

Posted on October 9, 2005

What a great plugin. I’m not interested in futzing around with things on the weekend. I tried it, and it works great. I’ve recommended your site on my own computer consulting blog too. I’m a computer consultant, and I’m overjoyed with your accomplishment here! You have a bright future…Congratulations on graduation!

Comment by Ken Savage

Posted on October 11, 2005

GREAT plugin and thanks. Makes it easier to deal with Google now on my blog.

Comment by Addy

Posted on October 19, 2005

Thanks a lot for great plugin!

I’m using version 2.6 and noticed that it adds to my sitemap dynamic (not se-friendly) urls for drafts after publication. If i then do “Edit-Save” this post - then urls become normal (se-friendly). Would you be so kind to fix it?

And it would be great if you could add additional headers for sitemap validation against a schema.

Thanks again.

Comment by Allergy Relief

Posted on October 25, 2005

Thanks for the plugin, works like a charm! Is there a mailinglist one can subscribe to be notified of new releases - if any? Thanks again, Nora

Comment by blau

Posted on October 29, 2005

Hi Arne,

I use wp 1.5.2, 1350 posts, 13000 comments, shared hosting. Got a “Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 130 bytes) in /home/virtual/site18/fst/var/www/html/wp-includes/template-functions-links.php on line 73″.

As it’s a shared hosting site, can’t allocate more memory in php.ini. Any suggestion? And of course, thank you for this great plugin and keep going!

Comment by Elliott

Posted on October 31, 2005

For anyone who’s interested… I have a script that turns your Google compliant XML sitemap into a Yahoo compliant sitemap that you can submit to Yahoo (and setup to run regularly with cron)

It’s free.

http://www.ielliott.com/2005/10/31/google-to-yahoo-sitemap/

Comment by Rob MacCurry

Posted on November 1, 2005

Hey once I saved the two files in my public_html directory, it worked instantaneously!

Comment by Thierry

Posted on November 1, 2005

I’ve juste mailed you the .PO and .MO files for the french translation of your plugin. It’ll be my way of thanking you :)

Comment by Bernd

Posted on November 2, 2005

Cool plugin, very useful and highly recommended!
Thank you very much!

Comment by Founder

Posted on November 4, 2005

Awesome plugin, thanks again. It’s greatly appreciated =)

Comment by Jesse Chilcott

Posted on November 7, 2005

Works wonderfuly on my site. Thanks heeps.
Jesse

Comment by Jason Golod

Posted on November 9, 2005

Any interest in porting this over to WordPress MU? I would be happy to help.

Comment by carsten

Posted on November 14, 2005

hi, thanks for the effort and for getting it running at all. :)
on our site, though, it did make our squid-cache sqeak and return error-messages, and no sitemap was generated at all. we then temp. disabled it, got no error message, but no result at all: the xml file remains empty, despite correct permissions.
any pointers?

Comment by Mickey

Posted on November 17, 2005

Does anybody know if this will work if I have a flash site, but a link to our blog as a regular html link on the main page along with the flash piece?

In other words, does the blog need to be your index page of your site?

Comment by Martin

Posted on November 17, 2005

Wonderful plugin! Full-featured and simplistic in the same time. Kudos.

Comment by asad

Posted on November 29, 2005

this is a nice Plugin… However, I have a problem in my WPwhenever I activiate this plugin, I get the following error

500 Internal Server Error

Is it because I have more than 3000 posts in my blog?!!

Comment by John

Posted on December 2, 2005

ASAD,

Read this, and see if it helps you
http://blog.gadgetgurutech.com/2005/11/21/quick-fix-google-sitemap-generator-plugin-for-wordpress/

This is how I fixed my “Server 500″ error.

Good Luck!

GG

Comment by Viper007Bond

Posted on December 2, 2005

Any plans to make this compatible with WordPress v2.0.x?

I get this error on the options page below the instructions:

Fatal error: Call to a member function on a non-object in /home/viperaa/public_html/wordpress/wp-content/plugins/sitemap.php on line 725

Comment by CHirag

Posted on December 12, 2005

Quick question:
Once I install this sitemap generator, do I need to do anything else (such as link to the sitemap from a Google account??) In other words, once the sitemap is done, how does Google find it?

thanks

Comment by CHirag

Posted on December 12, 2005

hello, i get this error:
everything seems to generate fine, but i cannot view the file, i get this error

Parse error: parse error, unexpected T_STRING in /var/www/fordmuscle/blog/sitemap.xml on line 1

http://www.fordmuscle.com/blog/sitemap.xml

Comment by arne

Posted on December 12, 2005

Hi CHirag,

you’ve configured your server to parse XML files with PHP. Try to deactivate that. If it works, you can create a Google account to view your sitemap statistics, but if you activated the “Tell Google about changes” function, you won’t need it.

Best regards,
Arne

Comment by Arthur

Posted on December 12, 2005

I have been trying out your plugin. Seems like everyone is having a pretty easy time with it. I have a permissions issue i just can’t get past:
Could not write into /sites/nowyoupissedmeoff/sitemap.xml
Could not write into /sites/nowyoupissedmeoff/sitemap.xml.gz
I have gone through all of the permissions i can think of even giving my whole webroot 777 and i still encounter this error. I have downloaded your lastest build 2.7 and am running wordpress 1.5.2. I am looking for any recommendations Thank you for your time and please let me know if there is anything i can get your or if you have any ideas….oh i forgot i am running fedora core 4 default instalation.

Comment by arne

Posted on December 12, 2005

Hi Arthur,

remove the “@” sign in front of the “fopen” commands at line 1232 and 1247. This will show a detailed error message if you click the rebuild button. Did you try to upload 2 (empty) files manually and give them CHMOD 777?

Best regards,

arne

Comment by CHirag

Posted on December 12, 2005

Arne you said “you’ve configured your server to parse XML files with PHP”

Can you explain this to me (sorry I am a laymen!) Where might this configuration be set?
Also, the feed xml seems to display fine..?
http://www.fordmuscle.com/blog/feed/

thank you for your help sir!

Comment by Arthur

Posted on December 12, 2005

I did try to upload blank files and that didn’t work. When i take out the @ i get

[client 209.41.163.23] PHP Warning: fopen(/sites/nowyoupissedmeoff/sitemap.xml) [function.fopen]: failed to open stream: Permission denied in /sites/nowyoupissedmeoff/blog/wp-content/plugins/sitemap.php on line 1232, referer: http://arthurstromberg.com/blog/wp-admin/options-general.php?page=sitemap.php

[client 209.41.163.23] PHP Warning: fopen(/sites/nowyoupissedmeoff/sitemap.xml.gz) [function.fopen]: failed to open stream: Permission denied in /sites/nowyoupissedmeoff/blog/wp-content/plugins/sitemap.php on line 1247, referer: http://arthurstromberg.com/blog/wp-admin/options-general.php?page=sitemap.php

Comment by arne

Posted on December 12, 2005

@CHirag:
You (or your hoster) changed something in the webserver configuration so .xml files get executed with PHP. Try to add the following line to a .htaccess file in the same folder like the sitemap.xml:
AddType text/xml .xml
This will tell Apache to send the XML files directly as text/xml and not execute it with PHP. But there must be a reason why you host changed this, so check if all your other sites / pages beneath the folder which contains the modified .htaccess file are still working.
The other feeds are working because WordPress doesn’t generate static .xml files of them.

@Arthur:
Hmm, I don’t really know. I’m not an Linux expert… Is the owner of the file correct? Try to set the owner of the file via CHOWN to the account which apache runs under. But CHMOD 777 should actually be enough…

Best regards,
Arne

Comment by CHirag

Posted on December 12, 2005

Hi Arne,
here is my htaccess from the /blog/ directory where wordpress is installed
where would you ad the AddType line: thanks!

# BEGIN WordPress

RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=40]
[…]
# END WordPress
RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/email/?$ /fordmuscle/blog/wp-email.php?year=$1&monthnum=$2&day=$3&name=$4 [QSA,L]
RewriteRule ^(.+)/printpage/?$ /fordmuscle/blog/wp-email.php?pagename=$1 [QSA,L]

Comment by Arthur

Posted on December 12, 2005

Arne,

Thanks for your help the @ sign really helped because i started to spit errors out for me to invstigate. it was a problem with SELinux preventing apache from creating the file. Probably not the best but i stopped SELinux and everything is working fine. Thanks again for your help.

Comment by arne

Posted on December 12, 2005

@CHirag:
Place it before the #BEGIN WordPress or after the #END WordPress but not between this two lines.

@Arthur:
Fine, I’m glad that it’s working now :)

Comment by CHirag

Posted on December 12, 2005

Arne,
Thanks so much. that worked!

Last question. In your readme it says if you want to sitemap files outside of the /blog directory you must move the .htaccess to the root. Does this mean that if my blog directory is www.site.com/blog and I want to sitemap say www.site.com/folder that I should move the htaccess to the root for www.site.com ? If i do this will your script be able to properly find and edit the .htaccess file?

thanks

Comment by arne

Posted on December 13, 2005

Hi CHirag,

if you want to include www.foo.com/folder/ and your blog is at www.foo.com/blog/ you must set the location of your sitemap file to www.foo.com/sitemap.xml. You can change the location at the admin page. Note that in your special case, you have to create an additional .htaccess file in your root directory (where the sitemap.xml must be placed) which contains the “AddType text/xml .xml”. Don’t copy or move the .htaccess file from your blog directory, because it contains important settings for your blog.

Comment by ptryk

Posted on December 14, 2005

hello.. i tried your plugin, worked great.. although it seems to include protected pages and posts in the sitemap.

well, i protect them for a reason, to keep the world out.. i certainly don’t want someone to google them and get them delivered to them.. well, so I am wondering, is there a ’simple’ way to exclude these protected items?

Comment by arne

Posted on December 18, 2005

I’m sorry, I have to close the comments here. This page gets too large and I don’t have enough time to answer all questions. If you have problems to set up the plugin, please have a look at the WordPress Forums or mail me if you’re interested in payed support.

Best regards,

arne

1038 Trackbacks (30 random links are shown)

Sorry, the comment form is closed at this time.