The MU forums have moved to WordPress.org

Google Sitemap (120 posts)

  1. drmike
    Member
    Posted 17 years ago #

    Read the error and do what it tells you to do maybe?

    Maybe you can raise the memory or time limit for PHP scripts.

  2. peaceguide
    Member
    Posted 17 years ago #

    thanks drmike,
    I checked on the most recent blog (id 49) and it works perfectly. On the other blogs however (for example id 4) when I activate the plugin and go to the sitemap tab it is reading blogs.dir/49/ but when i print or echo $blog_id inside GetHomePath() it returns correctly (4). here is the warning.

    Warning: filemtime(): Stat failed for /home/content/s/t/a/starcurt/html/wp-content/blogs.dir/49/sitemap.xml (errno=2 - No such file or directory) in /home/content/s/t/a/starcurt/html/wp-content/plugins/google-sitemap-generator/sitemap.php on line 2351
    Your sitemap was last built on December 31, 1969 5:00 pm.

    note: the sitemap created for 49 is in the proper place as expected 49/files/sitemap.xml and no sitemap.xml for 4/files/?

    do you have a recent working version perhaps i could download?

  3. peaceguide
    Member
    Posted 17 years ago #

    with the error above (No such file) and from the blog whose blog_id=4 I changed the url for link 'rebuild sitemap manually' from
    site.com/wp-admin/options-general.php?page=sitemap.php&sm_rebuild=true to
    site.com/blogname/wp-admin/options-general.php?page=sitemap.php&sm_rebuild=true

    and the sitemap did build. however, it put it in the wrong place ie.

    blogs.dir/49/
    instead of
    blogs.dir/4/files/

  4. peaceguide
    Member
    Posted 17 years ago #

    Does anyone have a current working version of the sitemap? If so, please post it.

  5. funk19
    Member
    Posted 16 years ago #

    I have this working now perfectly for our MU install. You can download it here: http://justinhartman.com/sitemap.php.txt

    I also fixed the sm_getHomePath() function so no more hard coding is necessary.

    Just a note. I'm not using the rewrite rule at all that's been discussed in this thread.

  6. Ovidiu
    Member
    Posted 16 years ago #

    hi there.
    I just have come around to have the same problems, as before I got this working :-(

    I get this error again:

    Could not write into /var/www/web5/web/wp-content/blogs.dir/1/files/sitemap.xml

    Could not write into /var/www/web5/web/wp-content/blogs.dir/1/files/sitemap.xml.gz

    and indeed, on new blogs, the files folders are only created when files get uploaded... what do you suggest? changing the plugin to put its files into the blog_id folder, just outside the files folder?

  7. jbass350z
    Member
    Posted 16 years ago #

    I am also getting this error:

    I get this error again:

    Could not write into /var/www/web5/web/wp-content/blogs.dir/1/files/sitemap.xml

    Could not write into /var/www/web5/web/wp-content/blogs.dir/1/files/sitemap.xml.gz

    It seems I cant even manually create it through http://FTP.. Any ideas how to fix it?

  8. Farms
    Member
    Posted 16 years ago #

    I know that WP 2.3 broke the sitemap plugin... maybe related?

  9. Ovidiu
    Member
    Posted 16 years ago #

    no, my question was totally unrelated. It works just fine, except, that I am trying to put the sitemap into the files subdirectory which is only created when there are uplaoded files...

    I guess I will jsut put it into the blog_id/folder and skip the files subdirectory...

  10. Ovidiu
    Member
    Posted 16 years ago #

    well, that doesn't help either as even the blog_id folder is only created when something has been uploaded :-(

  11. theapparatus
    Member
    Posted 16 years ago #

    You do have to get your endusers to upload a file before they can get a sitemap generated. That's why jazz is getting those errors.

    And, yes, if you're using the main plugin for sitemap (The name Anne comes to mind) you have to upgrade and then apply simular patches to what's been done before.

  12. BradWaite
    Member
    Posted 16 years ago #

    For those still looking for a sitemap solution and who may be as confused as I was on which one to choose, I can definitely say that Arne Brachold's Google XML Sitemaps Generator for WordPress is the way to go.

    I tried ms_muXmlSitemap from WPMUDev, but first had to upgrade it to be compatible with the taxonomy/category scheme used in WordPress 2.1+. It does work now, but is nowhere near as sophisticated as Brachold's solution.

    I searched in vain for OrangeCow's sitemap generator which looked promising, but is just not available.

    There's another sitemap generator for WPMU, Site map Generator Plugin for WordPress, which is a MU-modified version of this one, but it only creates HTML sitemaps, not XML sitemaps for Google, Yahoo! or MSN.

    So after finding the best one, I went to install it. As it turns out (as mentioned a post or two above), the version referenced in this thread is outdated and won't work with WordPress 2.1+.

    I spent yesterday modifying Brachold's most recent release, Google Sitemaps Generator 3.0.1 for WordPress 2.1+ to work with WPMU. While it is tailored to work with my implementation of WPMU, it should work just fine for standard installations. Here's the highlights:

    * I removed the necessity for any hard-coding of your URL as previously instructed in this thread.

    * It now auto-creates the directory for the sitemap.xml files. That means there is no longer a requirement to upload a file before generating your sitemap.

    * I'm using it with the .htaccess mod_rewrite rules to stave off any possible issues with the sitemap.xml not being in the root directory. This version should work without those rules, but I haven't tested it.

    * If, in the admin page, you enable the updating of your robots.txt to include the sitepmap's location, the generated robots.txt will also include the robots.txt rules from your standard blog settings. This requires the use of the .htaccess rewrite rules since the default robots.txt is generated by code that is not sitemap aware.

    * All mods are wrapped in a WPMU checker, so this version should work in both stand-along WP installations and WPMU. I've contacted Brachold about putting these mods in his next release. The original is GPLed, so I can release it on WPMUDev, but I'd rather save everyone the confusion, if possible, and have a single canonical sitemap generator.

    Feedback, corrections or other comments?

  13. Farms
    Member
    Posted 16 years ago #

    w00t! Fantastic... you've just saved me many hours of headscratching / searching / hacking :)

    If you want some testing pop me and email james (at) edublogs /dot/ org or just whack it on WPMUDEV and we'll all be forever in your debt!

  14. selad
    Member
    Posted 16 years ago #

    Great work!

    I would be happy to give it a run (elad at blogli dot co dot il).

    WPMUDEV would be the best place :)

  15. Iron
    Member
    Posted 16 years ago #

    You are the king Brad :)

    When will you put it on WPMUDEV ?

  16. Farms
    Member
    Posted 16 years ago #

    Any news :)

  17. RavanH
    Member
    Posted 16 years ago #

    BradWaite,

    I am VERY interested in testing if it works for WPMU 1.3! As a big fan of Arne's plugin, I know it would rock on MU :)

    Let me know if I can help out ravanhagen /\ gmail _ com

  18. suleiman
    Member
    Posted 16 years ago #

    I just have one question about all this:

    Doesn't the user still have to submit their sitemap to google?

    Wouldn't it be great if there were a way of having google notified of the availability of the new sitemap after X number of posts?

    Is this even possible? Is this called a rant?

  19. Farms
    Member
    Posted 16 years ago #

    Bradley is teasing us!

  20. darito21
    Member
    Posted 16 years ago #

    Hi
    I have a problem with the MU installation
    I use subdomains and the plugin can not write in the files folder.
    Also the default settings show the main blog directory, so everytime i update a blog the old file is deleted and a new one is created.

    The problem is that it is not working with MU or at least for me. It works great for any domain, because it creates the sitemap and google can find it but when a new blog is updated only the latest updated sitemap remains in the main directory.

    I dont know why, but i cant create the file inside the blogs.dir/ directory

    Anyone had this problem?

    Damian

  21. storpappa
    Member
    Posted 16 years ago #

    I have been playing with this for a few days with no real success. When I do get it working, on skamarakas.com/jim, all I get is an empty file.
    http://skamarakas.com/jim/sitemap.xml
    <?xml version="1.0" ?>
    <urlset xmlns="http://www.google.com/schemas/sitemap/0.84" />

    On the main blog at skamarakas.com, I get redirected to the registration page - http://skamarakas.com/wp-signup.php?new=sitemap.xml

    I tried looking for an update on wpmudev.org also, and have tried the 0.4 update posted at signpostmarv

    For a feature that everyone can benefit from, I would think this would be on the list for core features.

    Is there someone who has a working version and a good set of instructions for any modifications needed to .htaccess, or creation of a files directory or rights needed if any?

  22. diesel12
    Member
    Posted 16 years ago #

    I think I've read every post regarding to Google sitemaps at this point but can't tell if there is a solution for 1.3 or not........ Can anyone point me to a thread that might set me straight? If the answer is in this thread, I'm not seeing it...

  23. RavanH
    Member
    Posted 16 years ago #

    Bradley..?

    BRADLEY?!

    --- shouts in deserts, dark forests, ocean shores, mountains and plains... no reply :( ---

  24. pumpkinpatch
    Member
    Posted 16 years ago #

    So which one is the right one?
    I have spent several hours over several days looking for a MU sitemap generator, but most seem to have been dropped midway through development.
    Looks like this is the best choice:
    http://dev.signpostmarv.name/pub/wordpress/wpmu/mu_google_sitemap/ms_muXmlSitemap-0.4.phps

    Maybe I should ask users here: which one do you use? Please post here...
    Thanks all

  25. awarner20
    Member
    Posted 16 years ago #

    I sure wish this was clear as well. I use Arne Brachold's Google XML Sitemaps Generator for many single WP installs, but yearn to know how to get this working with MU and have sitemaps generated for each of the blogs.

    Can someone please help clear this up for us?

    p.s. I have tried the one found here http://wpmudevorg.wordpress.com/project/XML-Sitemap-(google-compliant)-for-WPMU
    and received an 500 internal server error after adding the lines to the .htaccess file as directed in the plugin.

  26. nocomment
    Member
    Posted 16 years ago #

    This might be something worth trying, but I cannot confirm if it works. I will try it when I get a chance.

    Go to:

    http://wpmudevorg.wordpress.com/plugins.php

    and there is something called 'Plugin Commander' which allows you to decide which plugins are used by default on blogs.

    In theory, you could use this to ensure Arne Brachold's Google XML Sitemaps Generator for each blog. From memory, it creates a sitemap automatically on installation.

    Let us know if it works - or if it is a no go.

  27. awarner20
    Member
    Posted 16 years ago #

    I'm going to try as I am already using Plugin Commander, but even reading through the readm.txt included with the plugin, it dictates creating two files in your root manually, maybe this has changed? If this is necessary, then it won't work for user blogs. I'll post back with results...

  28. awarner20
    Member
    Posted 16 years ago #

    I can confirm that this is working! At least as far as I can tell, it seems to be. I downloaded and installed version 3.0.0.1 from HERE. Once I activated it on the Admin blog, I went to the "xml-Sitemap" options and "built" it and it created the necessary sitemap.xml file in the root of my admin blog. After that was successful, it was time to test my user blogs. Using Plugin Commander, I did a "Mass Activate" of the sitemap plugin across all my user blogs. I signed into a couple of the user blogs and in the "settings" area I had access to the xml-Sitemap settings. I was able to build a sitemap.xml file for each user blog. I double checked and loaded the xml file in the browser, i.e. http://firstuserblog.mysite.com/sitemap.xml and it worked! Then, because I want all future users to have access to building their sitemaps, I logged back into the main Admin, went to Plugin Commander, and set "auto-activate" to "ON" for the sitemap plugin. Now when a new blog is created, it will have the xml-sitemap options! Thanks for getting me to try this out, I honestly didn't think it would work.

  29. awarner20
    Member
    Posted 16 years ago #

    Wait, I'm wrong....sort of....it seems that every time a sitemap is built from ANY BLOG, that it just overwrites the sitemap.xml file that resides in the root of my MU install...any thoughts?

  30. nocomment
    Member
    Posted 16 years ago #

    Sorry to lead you on a wild goose chase.

    If it is writing to one or two files in root, I suppose that would happen.

    I suppose you could drop a note to Arne Brachhold, but imagine you would not be the first to ask.

    The only good thing is that WordPress Mu tends to get well indexed by Google, especially if you ping Google blogs.

    Good luck.

About this Topic