Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2008-07-07 00:54:25

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_sitemap: Sitemap generator

Not yet (it would be in the changelog).

Offline

#38 2008-07-21 09:34:47

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: jmd_sitemap: Sitemap generator

Does this plugin work with gbp_permanent_links?

I mean will the links be output in the correct way?

Offline

#39 2008-07-21 18:15:52

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_sitemap: Sitemap generator

Again, features and changelog and previous posts. I’m holding off on adding support for gbp_permanent_links because it’s being updated sometime in the near future.

Offline

#40 2008-07-21 18:57:47

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: jmd_sitemap: Sitemap generator

Thanks Jon-Michael, this was something I always wanted to implement!
I created the sitemap.xml.gz file and the plugin is happy. However when trying to validate the sitemap, I get this error:

XML Parsing Error: no element found
Location: http://www.w3.org/2001/03/webdata/xsv?docAddrs=http%3A%2F%2Fdomainname.com%2Fsitemap.xml.gz&warnings=on&style=xsl
Line Number 1, Column 1:
^

What does that mean? Is that because it’s gzipped?

Cheers Martin

Offline

#41 2008-07-21 19:11:15

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_sitemap: Sitemap generator

It could be – I haven’t tried that validator before.

  1. Did you click “update sitemap” or post or edit an article before validating?
  2. Have you tried validating with Google Webmaster Tools?

Offline

#42 2008-07-21 19:25:57

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: jmd_sitemap: Sitemap generator

  1. yes, I updated the sitemap.
  2. no, I think one needs an account, but I’ll try when I get a chance.

On a related note, I opted to link the sitemap in the robots.txt, which looks like this now:

User-agent: *
sitemap: http://domainname.com/sitemap.xml.gz
Disallow:

Does that look OK?

Thanks JM!

Offline

#43 2008-07-22 07:11:53

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_sitemap: Sitemap generator

Strange – could you send me a copy of the sitemap XML? You can replace the domain with example.com if needed too. It doesn’t matter if it’s gzip’ed either.

According to the protocol, you don’t need it inside the User-agent block. I think “sitemap” (not the path) is case-insensitive, so you should be good.

Offline

#44 2008-07-22 13:21:11

papalozarou
Member
Registered: 2004-07-05
Posts: 43

Re: jmd_sitemap: Sitemap generator

This was working fine for me on my dev environment, but now I’m live, I get the following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 128 The above errors were caused by the plugin:jmd_sitemap

Offline

#45 2008-07-22 15:38:34

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_sitemap: Sitemap generator

papalozarou – are you sure you have PHP 5 installed on the live server?

all – use a validator that recognizes gzip’ed sitemaps or gunzip the sitemap and validate the XML file (thanks masa).

Offline

#46 2008-07-22 15:42:08

papalozarou
Member
Registered: 2004-07-05
Posts: 43

Re: jmd_sitemap: Sitemap generator

agh – sorry my fault. No PHP 5, that will be why. Have got the other older plugin working for now (I think). Thanks for the reply though.

Offline

#47 2008-07-22 17:43:56

papalozarou
Member
Registered: 2004-07-05
Posts: 43

Re: jmd_sitemap: Sitemap generator

Actually, as I am on MT, I’ve just switched over to PHP 5 and it works, except I now get this error:

@Notice: Undefined variable: sticky in /textpattern/lib/txplib_misc.php(574) : eval()’d code on line 100

Notice: Undefined variable: sticky in /textpattern/lib/txplib_misc.php(574) : eval()’d code on line 101@

I’ve set sticky articles to yes and no and it still appears.

Last edited by papalozarou (2008-08-06 17:54:06)

Offline

#48 2008-07-22 17:48:15

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_sitemap: Sitemap generator

Oops, you must be running the unfinished version if you got it from /jmd_sitemap/jmd_sitemap.php. You want this one.

Offline

Board footer

Powered by FluxBB