SitemapMgr - I'm having trouble getting a sitemap

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: SitemapMgr - I'm having trouble getting a sitemap

Post by Rolf »

System Information?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: SitemapMgr - I'm having trouble getting a sitemap

Post by paulbaker »

System info - see link in my signature
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: SitemapMgr - I'm having trouble getting a sitemap

Post by Rolf »

You tried $config['debug'] = true; in config.php and renew the pages sitemap?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: SitemapMgr - I'm having trouble getting a sitemap

Post by Rolf »

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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Lew
Forum Members
Forum Members
Posts: 12
Joined: Wed Dec 05, 2007 2:44 pm

Re: SitemapMgr - I'm having trouble getting a sitemap

Post by Lew »

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.
Last edited by velden on Mon Feb 26, 2018 10:05 am, edited 1 time in total.
Reason: code hacks
Locked

Return to “Modules/Add-Ons”