Sitemap Module
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6
Back to this add-on's main page
View Other Add-ons From Brian Litzinger
Unable to add Channels to sitemap
Support Request
A. DeMers
|
Posted: 19 January 2011 10:28 PM |
|
|
|
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
|
Posted: 20 January 2011 08:16 AM |
# 1
|
|
|
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
|
Posted: 20 January 2011 12:11 PM |
# 2
|
|
|
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
|
Posted: 20 January 2011 12:19 PM |
# 3
|
|
|
when you go to the sitemap module page is the stories channel set to “include”?
|
|
|
A. DeMers
|
Posted: 20 January 2011 12:21 PM |
# 4
|
|
|
Hi Ben,
Yes.
Status = Included,
Change Freq. = weekly
Priority = 0.5
Andrea
|
|
|
A. DeMers
|
Posted: 20 January 2011 12:44 PM |
# 5
|
|
|
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
|
Posted: 20 January 2011 01:03 PM |
# 6
|
|
|
did you click on the Update Channels button at least once?
|
|
|
A. DeMers
|
Posted: 20 January 2011 01:42 PM |
# 7
|
|
|
I have clicked on Update Channels several times and have always received the “Channels Successfully Updated” message.
|
|
|
PutYourLightsOn
|
Posted: 20 January 2011 02:12 PM |
# 8
|
|
|
i’m stumped, can you email me access to the control panel and i’ll take a look?
|
|
|
PutYourLightsOn
|
Posted: 21 January 2011 08:56 AM |
# 9
|
|
|
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
|
Posted: 21 January 2011 06:04 PM |
# 10
|
|
|
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
|
Posted: 21 January 2011 06:40 PM |
# 11
|
|
|
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
|
Posted: 25 January 2011 07:52 AM |
# 12
|
|
|
ah yes, was a line of test code i forgot to delete, have removed now. glad its working for you!!
ben
|
|
|
KeepAmericaFishing Admin
|
Posted: 11 March 2011 07:01 PM |
# 13
|
|
|
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?
|
|
|