• Home
  • Community
  • Submitted News
FAQ • Search • Login
Forum Home • Register

View unanswered posts | View active topics


Board index » Pligg » Pligg Modules » Development Modules

All times are UTC


Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only



Post new topic Reply to topic  Page 2 of 3
 [ 26 posts ]  Go to page Previous  1, 2, 3  Next
Print view Previous topic | Next topic 
 Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only 
Author Message
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
nzbullet wrote:
Hi there, can anyone help with this.

Everything seems to work fine until I go to http://www.linka.co.nz/sitemap-1.xml, http://www.linka.co.nz/sitemap-0.xml or http://www.linka.co.nz/sitemap-pages.xml. When I put one of those urls in my address bar this is the result that is returned:

Code:
XML Parsing Error: no element found
Location: http://www.linka.co.nz/sitemap-1.xml
Line Number 1, Column 1:
^


Can any one tell me why I am getting this error and mroe importantly how to fix it.

Cheers


Hi nzbullet.

What Version Of Pligg Are You Running?

What Version oF XML Sitemaps, is it the one above?

What is your URL Method set to 1 0r 2?

cheers


Sun Feb 10, 2008 9:31 pm
Profile
nzbullet

Joined: Sun Feb 10, 2008 6:24 am
Posts: 6
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
I am using Pligg Version 9.8.2, URL method 2 and I download the using the link above.


Sun Feb 10, 2008 9:59 pm
Profile
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
Hi nzbullet,

I see clearly see your error, I can say for certain that it is working on other sites with v9.8.2 and even v9.9.0.

Unfortunatley i am stumped for now. :( It may be you have edited some of pliggs code and that has affected the module in some way, at the moment i cannot really think of another reason. I will have a look at the module and do a test install on a clean v9.8.2 of pligg. see what happens and we can take it from there m8.

8-)


Mon Feb 11, 2008 3:32 pm
Profile
nzbullet

Joined: Sun Feb 10, 2008 6:24 am
Posts: 6
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
Cheers, I appreciate that. I have edited a number of files from the standard pligg install, so I thought maybe it was that as well. Do you know which "Pligg files" this calls and I can have a look and see if there are any differences between the originals and mine.


Mon Feb 11, 2008 8:19 pm
Profile
nzbullet

Joined: Sun Feb 10, 2008 6:24 am
Posts: 6
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
OK, so I tought I would try to go to a non-clean url version of the sitemap i.e http://www.linka.co.nz/module.php?module=xml_sitemaps_show_sitemap&i=1 and the sitemap shows fine. Could this be something to do with either my libs/html1.php filre or .htaccess file? I definetley have URL method 2 switched on, you can see it working on the site, so can only think it has something to do with that.


Mon Feb 11, 2008 9:08 pm
Profile
nzbullet

Joined: Sun Feb 10, 2008 6:24 am
Posts: 6
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
LincolnHawks wrote:
369874123 wrote:
Hi,
I'm having a few problems:
First, I don't have a .htaccess file in the folder (either not on the server) and i can't upload one...
Second, http://npgb.org/sitemapindex.xml is showing "cannot find page".
Thanks for helping :)


Hi 3698,

Your .htaccess file will be in the root folder of your pligg install, it's name on a fresh install of pligg is "htaccess.default" you will need to rename that file to ".htaccess" on your server then add the 2 lines below to that file.

Code:
RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L]
RewriteRule ^sitemap-([a-zA-Z0-9]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1[L]
DO NOT COPY THIS CODE

8-)


Problem SOLVED.

In the post above, which is where I copied the rewrite code from you will notice that there is no space at the end of the second rewrite rule, between $1 and [L]

This is what was causing the problem, after adding a space it now works.

Cheers

Dan


Last edited by nzbullet on Tue Feb 12, 2008 1:59 am, edited 1 time in total.

Tue Feb 12, 2008 12:30 am
Profile
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
Cool one nz i fixed that space in that post :) hehe thanks man and sorry for causing you a headache. :P


Tue Feb 12, 2008 12:57 am
Profile
nzbullet

Joined: Sun Feb 10, 2008 6:24 am
Posts: 6
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
No worries, It's an awesome MOD so I had to get it working :) Cheers for your work on it.


Tue Feb 12, 2008 2:02 am
Profile
catchpen
User avatar

Joined: Thu Feb 14, 2008 4:07 pm
Posts: 32
Location: Texas
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
This came with the Pligg 9.9 SEO edition (thanks), I was scratching my head since my ftp doesn't show an sitemapanything.xml file but it checks good with Google. Cool!

_________________
http://www.GarageSongs.com


Sun Mar 16, 2008 9:56 pm
Profile
LincolnHawks
Site Admin
User avatar

Joined: Wed Dec 12, 2007 9:34 pm
Posts: 296
Post Re: Pligg XML Sitemaps Module v9.8.2 URL Method 2 Only
catchpen wrote:
This came with the Pligg 9.9 SEO edition (thanks), I was scratching my head since my ftp doesn't show an sitemapanything.xml file but it checks good with Google. Cool!


Hi cacthpen,

hehe your server will show module.php?module=xml_sitemaps_show_sitemap with the rewrite enabled though it should be reachable with sitemapindex.xml ;)

Code for the rewrite that is needed for google webmaster tools is below.

Code:
RewriteRule ^sitemapindex.xml module.php?module=xml_sitemaps_show_sitemap [L]
RewriteRule ^sitemap-([a-zA-Z0-9]+).xml module.php?module=xml_sitemaps_show_sitemap&i=$1 [L]


8-)


Mon Mar 17, 2008 2:55 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 2 of 3
 [ 26 posts ]  Go to page Previous  1, 2, 3  Next

Board index » Pligg » Pligg Modules » Development Modules

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

©2007-2008 Social CMS Buzz

Feed XML Favourite Valid XHTML Valid CSS WordPress