October 07, 2008, 23:32:31 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please support SEO4smf further development donating here or use paypal button from left menu.
 
  Home   Forum   Help Search Directory Calendar Login Register    RSS 2.0 feedAtom feed


News
Please support SEO4smf further development donating here or use paypal button from left menu.
Pages: [1]
  Print  
Author Topic:

Premature end of script headers: sitemaps.php

 (Read 1206 times)
0 Members and 1 Guest are viewing this topic.
davich
Newbie
*

Points: 0
Offline Offline

Posts: 4


« on: July 06, 2008, 14:52:55 »

Hi all,
I'm getting the following error:
Premature end of script headers: sitemaps.php

I'm using SFM 1.1.5 and seo4sfm 0.2.9.9.

I've read a couple of places say it could be a permissions thing (my sitemaps.php is 0666). In the sitemaps.php file it seems to have two <?php ... ?> sections.

I'm no php expert but i've tried commenting out large sections of it and I still get the same error...

Does anyone have any ideas?

Thanks

David
Logged


redone
Jr. Member
**

Points: 0
Offline Offline

Posts: 14


« Reply #1 on: July 06, 2008, 22:04:33 »

I've had this mod working fine at my site. I suggest checking the permission of your index.php and your forum folder and chmod them to 755 and see if that works.

Failing that its probably server related and not directly related to the mod.
Logged
davich
Newbie
*

Points: 0
Offline Offline

Posts: 4


« Reply #2 on: July 07, 2008, 12:24:10 »

hey redone, thanks.
Changing the permissions of sitemaps.php to 755 did the trick.. (index.php and the folder were already 755).
Thanks for your help Smiley

David
Logged
dheeraj4uuu
Jr. Member
**

Points: 0
Offline Offline

Posts: 22


WWW
« Reply #3 on: July 11, 2008, 02:28:54 »

Hello, I've been using this for 1year but recently noticed that my sitemap was not working giving the following error!
Code:
XML Parsing Error: no element found
Location: http://www.legendarydevils.com/sitemap.xml
Line Number 1, Column 1:
^

I've tried chmod 755 index.php and sitemaps.php but no result! please help me out this.
Logged

Underground Downloads

http://www.legendarydevils.com/
davich
Newbie
*

Points: 0
Offline Offline

Posts: 4


« Reply #4 on: July 11, 2008, 11:50:24 »

make sure your .htaccess is set up right and then have a look in the sitemaps.php file to see if it's alright.
Logged
dheeraj4uuu
Jr. Member
**

Points: 0
Offline Offline

Posts: 22


WWW
« Reply #5 on: July 11, 2008, 12:32:53 »

Code:
RewriteEngine on

#Some apache servers need Rewritebase.
#delete # from start of Rewrite base to enable it.
#If your forum is something like http://www.forum-example.com/forum then modify your
#RewriteBase in this way: RewriteBase /forum

RewriteBase /

#Archive/Sitemaps
RewriteRule ^sitemaps-([a-zA-Z0-9-]*)\.html index.php?dummy=1&action=seo4smfsitemaps&sa=$1 [L]

#uncomment if you use beautifying url actions
#RewriteCond %{REQUEST_METHOD} =GET
#RewriteCond %{QUERY_STRING} ^action=(.*)$
#RewriteRule  ^(.*)$ seo4smf-redirect.php?a=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^topic=([0-9]*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^topic=([0-9]*).([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?t=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^board=([0-9]*).([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?b=%1 [R=301,L]

RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*);(.*)$
RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1;param=%2 [R=301,L]

RewriteCond %{QUERY_STRING} ^action=profile;u=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?u=%1 [R=301,L]

#Tiny Portal Old Url's
RewriteCond %{QUERY_STRING} ^page=([0-9]*)
RewriteRule  ^(.*)$ seo4smf-redirect.php?p=%1 [R=301,L]

#Rewrite Old urls
RewriteRule  ^index.php/board,(.*).html seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^index.php/board,(.*).html;(.*) seo4smf-redirect.php?b=$1&o=$2 [R=301,L]

RewriteRule  ^index.php/topic,(.*).html seo4smf-redirect.php?t=$1 [R=301,L]
RewriteRule  ^index.php/topic,(.*).html;(.*) seo4smf-redirect.php?t=$1&o=$2 [R=301,L]

#Bad Url's
#RewriteCond %{REQUEST_URI} ^(.*)\.html$
#RewriteCond %{REQUEST_URI} !^(.+)/(.*)-t([0-9]*)\.([0-9]*).html$
#RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html seo4smf-redirect.php?t=$2 [R=301,L]

RewriteRule  ^(.*)/-t(.*).html seo4smf-redirect.php?t=$2 [R=301,L]
RewriteRule  ^-b(.*)/$ seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^-b(.*)/(.*)$ seo4smf-redirect.php?b=$1 [R=301,L]
RewriteRule  ^(.*)/-b(.*)/$ seo4smf-redirect.php?b=$2 [R=301,L]

#New board URL's
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/;(.*) index.php?dummy=1&board=$2.$3&$4 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9]*)/$ index.php?dummy=2&board=$2.$3 [L]
RewriteRule ^(.*)-b([0-9]*)\.([0-9])$ index.php?dummy=2&board=$2.$3 [L]

#New topic URL's
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*);(.*)$ index.php?dummy=1&topic=$2.$4&$6 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;((\?:from|msg|new)[0-9]*) index.php?dummy=1&topic=$2.$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html;(.*)$ index.php?dummy=1&topic=$2.$3&$4 [L]
RewriteRule ^(.*)-t([0-9]*)\.([0-9]*)\.html$ index.php?dummy=1&topic=$2.$3 [L]

#New profiles URL's
RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*);start,([0-9]*);delete,([0-9]*);sesc,([a-z0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4;delete=$5;sesc=$6 [L]
RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*);start,([0-9]*)$ index.php?dummy=1&action=profile;u=$2;sa=$3;start=$4 [L]
RewriteRule ^(.*)-u([0-9]*)\.html;sa,(.*)$ index.php?dummy=1&action=profile;u=$2;sa=$3 [L]
RewriteRule ^(.*)-u([0-9]*)\.html index.php?dummy=1&action=profile;u=$2 [L]

#New Tinyportal Articles URL's
RewriteRule ^(.*)-p([0-9]*)\.html index.php?dummy=1&page=$2 [L]

#New action Url's - uncomment if you use beautifying url actions
#RewriteRule ^(.*)\.html(.*)$ index.php?dummy=1;action=$1;$2 [L]
#RewriteRule ^(.*)\.html$ index.php?dummy=1;action=$1 [L]

#Sitemaps
RewriteRule sitemap.xml sitemaps.php [L]
RewriteRule urllist.txt urllist.php [L]


The above is my htaccess and the sitemaps.php is
i have attached below...can you please look out my problem..

I tried to check my sitemap using the xml checker provided in this sites and i got the error...Sitemap does not exists or an empty file..

when i opened in browser i got

Code:
XML Parsing Error: no element found
Location: http://www.legendarydevils.com/sitemaps2.php
Line Number 1, Column 1:
^

Iam totally helpless what the problem is...
« Last Edit: July 11, 2008, 12:35:33 by dheeraj4uuu » Logged

Underground Downloads

http://www.legendarydevils.com/
davich
Newbie
*

Points: 0
Offline Offline

Posts: 4


« Reply #6 on: July 13, 2008, 06:29:34 »

not 100% sure, but your error message has changed. It seems to be looking for sitemaps2.php now... i assume this file doesn't exist, so that would be your problem. Find out what's looking for sitemaps.php and change it to sitemaps.php
Logged
redone
Jr. Member
**

Points: 0
Offline Offline

Posts: 14


« Reply #7 on: July 13, 2008, 19:12:47 »

What is the actual url of your sitemap?
Logged
dheeraj4uuu
Jr. Member
**

Points: 0
Offline Offline

Posts: 22


WWW
« Reply #8 on: July 17, 2008, 13:04:56 »

The Actual url is

http://www.legendarydevils.com/sitemap.xml

Urllist
http://www.legendarydevils.com/urllist.txt

I think the my sitemap was taking stylesheet to load the sitemap ..but i donno exactly but if you want i can post my style.css file

Logged

Underground Downloads

http://www.legendarydevils.com/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks

TinyPortal v0.9.7 © Bloc
Valid XHTML 1.0! Valid CSS!