Error in sitemapindex.xml

The GYM Sitemaps & RSS module for phpBB. Sitemaps and RSS feeds for Google Yahoo! and MSN Live, support, add ons etc ...

Moderator: Moderators

Error in sitemapindex.xml

Postby okanbilke » Tue Sep 10, 2013 10:19 am

hi,

i am receiving following error in my sitemapindex.xml . my sitemap isn't working from 1-2 weeks.

[code][/code]

files have not mistake i change all of them to originals but mistake isn't fixed.


sorry for bad english.

thank you everyone.
Last edited by okanbilke on Wed Dec 18, 2013 3:53 am, edited 1 time in total.
okanbilke
 
Posts: 2
Joined: Tue Sep 10, 2013 10:12 am

Advertisement

Re: Error in sitemapindex.xml

Postby HB » Tue Sep 10, 2013 2:09 pm

Background: You get that error when your PHP starts echo'ing text before the response HEADer has been generated. Normally the output content is created in in-memory template variables and then generated at the very end using the template engine. Just prior to output text from the templating engine, the code typically spits out response HEADers... so your error says that you started output of the HTML payload (body) before your code output the HTTP response header, so it's complaining since you can't generate headers after you start the payload (body).

The short answer is you probably have a typo in this file:

Code: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/gym_sitemaps/includes/gym_output.php on line 136: Cannot modify header information - headers already sent by (output started at [ROOT]/language/tr/gym_sitemaps/gym_common.php:1)

I assume "/language/tr/gym_sitemaps/gym_common.php" is a translated file and you have a typo in it. For example, you're missing the opening "<?php" line, so the compiler interprets it not as code, but as text to be echo'd to the output stream.

PS: In my opinion, sitemaps are a complete waste of time for phpBB. No bot has any issue efficiently traversing phpBB boards.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1509
Joined: Mon Oct 16, 2006 2:25 am

Re: Error in sitemapindex.xml

Postby okanbilke » Wed Sep 11, 2013 5:34 pm

this is my [ROOT]/gym_sitemaps/includes/gym_output.php
gym_output.rar

and
this is my [ROOT]/language/tr/gym_sitemaps/gym_common.php
gym_common.rar


i can't find the mistake and i can't find solution. how can i fix this.
okanbilke
 
Posts: 2
Joined: Tue Sep 10, 2013 10:12 am


Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests