1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sitemap for XenForo 1.5.2

Provides a sitemap that is used by the Google Crawler to index your pages

  1. yavuz

    yavuz Well-Known Member

    It seems there is a problem with the ping feature. I ran the cron and got "an error occured, please try again later" error.

    But the sitemap generates perfectly, I have already started to benefit from it. Thanks.
    Puntocom likes this.
  2. lms

    lms Well-Known Member

    Thanks. Work fine.

    Installed and translated to spanish. Attach addon in spanish.

    Salud2

    Attached Files:

  3. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    It iterates over the forum using the forum id, meaning the creation date of the forum in most of the cases (I guess an import would invalidate that)
    The actual order of the URLs in the sitemap does not matter. There is, however, a priority setting that I am still not using to indicate which forums have more relevance.

    It does exclude the threads in the private forums.
  4. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    The blue screen is because I am sending stuff to stdout (mainly to debug what it is generating), and the XenForo controller does not like that. Actually it is pretty funny, there is a comment on the source code that says "capture otuput here or something" :) I don't seem to have a way to return a custom view or piggyback on existing output, so that means it always gives an error with the headers.

    I could probably not print anything and have the cron job run in silent mode, but I'd rather see what's going on (I guess there could be a flag for that). You can ignore that safely.
    Puntocom likes this.
  5. Lenin

    Lenin Active Member

    yeah working... thanks
  6. Pavel Safonov

    Pavel Safonov Member

    See error in russian forum...

    Code:
    Generating forums...
    -- Excluded: http://www.lifecz.ru/forums/%D0%9C%D0%BE%D0%B4%D0%B5%D1%80%D0%B0%D1%82%D0%BE%D1%80%D1%81%D0%BA%D0%B0%D1%8F.27/
    -- Excluded: http://www.lifecz.ru/forums/%D0%9F%D1%80%D0%B5%D0%B4%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F-%D0%B4%D0%BB%D1%8F-%D1%84%D0%BE%D1%80%D1%83%D0%BC%D0%B0.30/
    -- Excluded: http://www.lifecz.ru/forums/%D0%9D%D0%BE%D0%B2%D0%B8%D1%87%D0%BA%D0%B0%D0%BC-%D0%B8-%D0%BD%D0%B5-%D1%82%D0%BE%D0%BB%D1%8C%D0%BA%D0%BE-%D0%BF%D0%BE%D0%BC%D0%BE%D1%89%D1%8C.31/
    -- Excluded: http://www.lifecz.ru/forums/%D0%90%D0%B4%D0%BC%D0%B8%D0%BD%D0%B8%D1%81%D1%82%D1%80%D0%B0%D1%82%D0%BE%D1%80%D1%81%D0%BA%D0%B0%D1%8F.32/
    Generating threads...
    -- Starting at -1 and generating 10000 urls...
    Generating index file...
    All doneAn unexpected error occurred. Please try again later.
  7. Pavel Safonov

    Pavel Safonov Member

    A... This is closed forums....
  8. Weiyan

    Weiyan Well-Known Member

    Thanks.
    The thread order seems no problem since my forum has less than hundrede theads. When the no. of threads grow up more than 10,000, which thread should appear in the sitmap? Is possible to have lates post sitemap and latest thread sitemap?
  9. Jeffin

    Jeffin Well-Known Member

  10. Jeffin

    Jeffin Well-Known Member

    I also got the "All doneAn unexpected error occurred. Please try again later." message
  11. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    If you get "All done" the sitemap generation finished successfully. You should be able to see the xml.gz files in the sitemap directory.
    The error is because the controller cannot output the "Cron job executed successfully" message, that is safe to ignore. I expect that whenever the devs capture the output by the cron jobs it will go away. I could make it less verbose but I'd rather have the debugging info.
    laztrix likes this.
  12. Digital Doctor

    Digital Doctor Well-Known Member

    would it be possible to generate a sitemap of Popular Addons such as:

    XenCarta
    XenMedio
    Galleria
    ?
  13. Jaxel

    Jaxel Well-Known Member

    Digital Doctor... I've been building my own sitemap generator, taking some ideas from Rigel's work (but still completely written by me), and my sitemap generator will include sitemaps for my addons.

    1.jpg
    gordy and yavuz like this.
  14. Digital Doctor

    Digital Doctor Well-Known Member

    Cool. Are multiple sitemap generators a good idea (one for forums, one for addons) ? Doesn't make a difference ?
  15. kingston

    kingston Well-Known Member

    This is great! My Wiki has TONS of good info to search on google.

    The current sitemap is awesome. Already seen more traffic because of it. Thanks!
  16. Numenorean7

    Numenorean7 Member

    I'm installing this addon tonight! :)
  17. silendreamer

    silendreamer Active Member

    I keep getting error

    Code:
    Generating forums...
    Generating threads...
    -- Starting at -1 and generating 10000 urls...
    -- Starting at 10731 and generating 10000 urls...
    -- Starting at 21192 and generating 10000 urls...
    -- Starting at 31439 and generating 10000 urls...
    -- Starting at 41590 and generating 10000 urls...
    -- Starting at 51811 and generating 10000 urls...
    Generating index file...
    All doneAn unexpected error occurred. Please try again later.
    EDIT: OK i just read in a post above that this error is OK.

    Thanks for the mod :)
  18. Weiyan

    Weiyan Well-Known Member

    Have u look inside the generated sitemap?
  19. Diablotic

    Diablotic Active Member

    Sitemap generated but I have got following error:

    Code:
    Server Error
    
    curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set
    XenForo_Application::handlePhpError() in CemZoo/Sitemap/Ping.php at line 29
    CemZoo_Sitemap_Ping::pingUrl() in CemZoo/Sitemap/Ping.php at line 47
    CemZoo_Sitemap_Ping::pingGoogle() in CemZoo/Sitemap/Index.php at line 113
    CemZoo_Sitemap_Index->pingServices() in CemZoo/Sitemap/Index.php at line 78
    CemZoo_Sitemap_Index->generate() in CemZoo/Sitemap/CronEntry/RebuildSitemap.php at line 26
    CemZoo_Sitemap_CronEntry_RebuildSitemap::run() in XenForo/Model/Cron.php at line 353
    XenForo_Model_Cron->runEntry() in XenForo/ControllerAdmin/Cron.php at line 204
    XenForo_ControllerAdmin_Cron->actionRun() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /home/censored_path/public_html/admin.php at line 13
    Vladislav Rastrusny likes this.
  20. Kaiser

    Kaiser Well-Known Member

    Did you make the sitemap directory 777?

Share This Page