Module

Developer
Supported

Sitemap Module

ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

You must be logged in to post.

Unable to add Channels to sitemap

Support Request

A. DeMers
A. DeMers

Hi,

I’m having trouble adding Channels to the sitemap.

For example:
Channel name: Stories
Template group/Template: stories/index
E.g. http://example.com/stories/story-title

Successfully added Locations. For e.g.:
http://example.com/
http://example.com/about/
http://example.com/contact/

Setup:
EE 2.1.3 build 20101220
index.php removed via exclude method in .htaccess

Sitemap module 2.1.2
Template Group/Template: site/sitemap
{exp:sitemap:get} in template
sitemap.php: $template = ‘/sitemap’;

sitemap accessible at:
http://example.com/sitemap
http://example.com/sitemap.php

Successfully submitted to Google.

In Sitemap Channels section, I have:
http://example.com/stories/{url_title} with status included, weekly and 0.5

Am I missing something?

Also, I needed to disable strict URLs since having this enabled was causing problems gaining access to:
http://example.com/sitemap
http://example.com/sitemap.php

Replace example.com with microcreditwomenindia.com if you wish to take a look.

Thanks!
Andrea

PutYourLightsOn
# 1
Developer
PutYourLightsOn

hi andrea,

so is the problem that the stories channel entries are not appearing in the sitemap? are you using any custom statuses by any chance?

ben

A. DeMers
# 2
A. DeMers

Hi Ben,

That is correct. The Stories Channel entries are not appearing in the sitemap. I did not create any custom statuses for the Stories Channel, so in Edit Group Assignments, the Status Group is at the default setting of None.

I can try setting the Status Group to the built-in group Statuses and see what happens.

Thanks for your help,
Andrea

PutYourLightsOn
# 3
Developer
PutYourLightsOn

when you go to the sitemap module page is the stories channel set to “include”?

A. DeMers
# 4
A. DeMers

Hi Ben,

Yes.
Status = Included,
Change Freq. =  weekly
Priority = 0.5

Andrea

A. DeMers
# 5
A. DeMers

To clarify further, when I try to add a second Channel called Articles, I ge the same result. Therefore, the issue appears to be with Channels in general and not with one Channel in particular.

PutYourLightsOn
# 6
Developer
PutYourLightsOn

did you click on the Update Channels button at least once?

A. DeMers
# 7
A. DeMers

I have clicked on Update Channels several times and have always received the “Channels Successfully Updated” message.

PutYourLightsOn
# 8
Developer
PutYourLightsOn

i’m stumped, can you email me access to the control panel and i’ll take a look?

PutYourLightsOn
# 9
Developer
PutYourLightsOn

andrea, had a look at your setup and for some reason there was a conflict with one of the sql statements in the module. you have mysql version 5.0.32 installed which is relatively old and did not support the syntax. i’ve added a fix to the module so please update to version 2.1.3 and let me if it solves the issue.

A. DeMers
# 10
A. DeMers

Hi Ben,

I updated the module to 2.1.3 and get the following error when viewing sitemap at http://microcreditwomenindia.com/sitemap

Parse error: syntax error, unexpected T_STRING in
/expressionengine/third_party/sitemap/mod.sitemap.php on line 121

Maybe a syntax error in SQL statement?

Thanks,
Andrea

A. DeMers
# 11
A. DeMers

Hi Ben,

I removed line 121 from mod.sitemap.php since it appeared to be a duplicate of lines 114 &115; and all is working fine now.

Thanks,
Andrea

PutYourLightsOn
# 12
Developer
PutYourLightsOn

ah yes, was a line of test code i forgot to delete, have removed now. glad its working for you!!

ben

KeepAmericaFishing Admin
# 13
KeepAmericaFishing Admin

I seem to be having the same problem with my Channels.

I am using Sitemap 2.1.3 and I checked the mod.sitemap.php file and there doesn’t appear to be any duplicate code.

What is different is that the first couple of channels are populating properly.  However, those at the bottom aren’t populating properly (those channels added most recently).

Here is what I have in my channel:

http://www.keepamericafishing.org/events/view/{url_title}
Set to Always
Priority set at 1.0

Any suggestions?