Unable to get SitemapMgr working

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Robin01
New Member
New Member
Posts: 3
Joined: Mon Mar 01, 2021 3:42 pm

Unable to get SitemapMgr working

Post by Robin01 »

So I believe the issue I'm having is likely an easy fix and hoping someone could help.
I've been following this guide https://cmscanbesimple.org/blog/how-to-use-sitemapmgr to setup the sitemapmgr for a client's site.

Server is a Apache 2.4 + PHP 7.2 environment, the site itself is cmsms version 2.2.13

1. I've added the following lines to config.php

Code: Select all

$config['permissive_smarty'] = 1;
$config['root_url'] = 'https://www.blabla.com/';
2. I've uploaded SitemapMgr-1.7.xml to the modules manager and installed it.

3. I go to the Site Admin -> SitemapMGR page and select the pages tab and submit the standard sitemap which is already made.
However I encounter an error saying :
Sitemap file has not yet been created.
First create a new module template as described in the documentation.
Update the Name and Module Tag as you need it!
A new sitemap(-index) file will be created after submit.
Image of admin SitemapMGR page: http://prntscr.com/10aiw5m

Now there are some older guides that seem to mention the need to create the template files for the SitemapMGR yourself, however they already seem to have been created as see in the following link: http://prntscr.com/10aj37q and the template itself here: http://prntscr.com/10aj4i3 .

Now my main question is what am I doing wrong ?
The sitemap won't publish because it claims it's missing a template that (as far as I can see) is clearly there.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1621
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Unable to get SitemapMgr working

Post by DIGI3 »

I'm guessing it's having trouble writing the file, and the message about the template might be a red herring. Check your php error logs (check in /admin too if you have per-directory error logs), the CMSMS Admin log, and the system info page to see if anything jumps out.
Not getting the answer you need? CMSMS support options
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

Are the robots.txt and sitemap.xml files created?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Robin01
New Member
New Member
Posts: 3
Joined: Mon Mar 01, 2021 3:42 pm

Re: Unable to get SitemapMgr working

Post by Robin01 »

I am unable to detect any meaningful error in the php error / admin logs.
The main sitemap.xml IS generated, it's just pages one that isn't.
Last edited by Robin01 on Thu Mar 04, 2021 10:43 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

It may be a folder/file permission thing in the /assets folder.
Or some error occurs when generating the pages sitemap.
Otherwise I am out of ideas...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

I might have found a site with similar issues, will be back if I have some news
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

@Robin01
Can you check if the /assets/sitemaps/ folder is created and still present
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Robin01
New Member
New Member
Posts: 3
Joined: Mon Mar 01, 2021 3:42 pm

Re: Unable to get SitemapMgr working

Post by Robin01 »

Yes the folder is created and present.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

Robin01 wrote: Fri Mar 05, 2021 12:34 pmYes the folder is created and present.
Okay, then I really don't know...
The one site where I could reproduce it, had that folder missing. I did a fix for that in SVN. But it won't help you.

Try to uninstall the module, delete the files and reinstall it. Maybe something went wrong there in your install.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

@Robin01
Your hosting has cPanel?
Check Metrics >> Errors section >> "Latest web server error log messages"
Something like "access_compat:error" and "AH01797: client denied by server configuration" there?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Unable to get SitemapMgr working

Post by Rolf »

the site itself is cmsms version 2.2.13
In CMSMS 2.2.15 we did fixes for HTTP2 in cms_http_request. SitemapMgr uses this too. Might be also related to your problem. Try to upgrade cms to latest and try again!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Robin01
New Member
New Member
Posts: 3
Joined: Mon Mar 01, 2021 3:42 pm

Re: Unable to get SitemapMgr working

Post by Robin01 »

Thank you for the advise, we will try updating first.
The environment it currently runs on does not offer direct error logs although I can turn error_reporting on client side, this does not seem to yield any strange permission related errors.

Will report back after update.
Post Reply

Return to “Modules/Add-Ons”