CMS Made Simple Forums
https://forum.cmsmadesimple.org/

SitemapMgr - I'm having trouble getting a sitemap
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=77925
Page 1 of 1

Author:  Rolf [ Tue Feb 06, 2018 2:40 pm ]
Post subject:  Re: SitemapMgr - I'm having trouble getting a sitemap

System Information?

Author:  paulbaker [ Tue Feb 06, 2018 6:05 pm ]
Post subject:  Re: SitemapMgr - I'm having trouble getting a sitemap

System info - see link in my signature

Author:  Rolf [ Tue Feb 06, 2018 7:37 pm ]
Post subject:  Re: SitemapMgr - I'm having trouble getting a sitemap

You tried $config['debug'] = true; in config.php and renew the pages sitemap?

Author:  Rolf [ Sat Feb 10, 2018 11:48 am ]
Post subject:  Re: SitemapMgr - I'm having trouble getting a sitemap

Add to config.php: $config['developer_mode'] = true;

Open this for your website:
https://www.yourwebsite.com/index.php?mact=SitemapMgr,cntnt01,update_sitemap,0&cntnt01sitemap_id=1
where the last 1 is a available sitemap ID

What message do you get?

Also check you webservers error log

Author:  Lew [ Mon Feb 26, 2018 5:32 am ]
Post subject:  Re: SitemapMgr - I'm having trouble getting a sitemap

I had exactly the same issue/behavior described above, where SitemapMgr wouldn't create the Pages sitemap file. I created a dummy content page and entered the displayed {Navigator template="..."} line and "view source" showed that the template worked as expected. But numerous attempts wouldn't create the file from the SitemapMgr admin page.

In Admin Log, noticed lots of CmsJobManager lines with "Received 401 response when trying to trigger async processing" and realized HTTP error 401 has to do with authentication. This new site I was testing was "protected" behind .htaccess-enabled userid/password authentication. As soon as I commented out the authentication lines in .htaccess, then SitemapMgr immediately worked and created the expected sitemap-pages.xml file.

Just to verify, in SitemapMgr.module.php, in function CreateSitemap, just before

[REMOVED: we don't allow code hacks in this forum]

to provide the authentication required. It worked as expected, even when the .htaccess authentication was enabled.

Not sure if you're using authenticated pages or not, but if you are, that could be what is causing the behavior you see.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/