Sitemap xml error

Started by nyksPhilae, July 26, 2015, 11:29:18 AM

Previous topic - Next topic

nyksPhilae

/index.php?action=sitemap  * it's working

/index.php?action=sitemap;xml  *it's not working :/

QuoteThis page contains the following errors:

error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error.

help me.

Livaco

post the code of the file its talking about

nyksPhilae

I tried two sitemap plugins

hxxp:forum.timarge.com/index.php?action=sitemap [nonactive]
hxxp:forum.timarge.com/index.php?action=sitemap;xml [nonactive]

hxxp:forum.timarge.com/index.php?action=kitsitemap [nonactive]
hxxp:forum.timarge.com/index.php?action=kitsitemap;xml [nonactive]

same error

and  with different browsers error message changed

Livaco

No try and find where the file is, open it and paste the code

Like This

nyksPhilae


Livaco

goto index.php and find the area of ?action=sitemap

nyksPhilae

i found it in these files
Seo4Smf.php
$code = ' | <a href="' . $scripturl . '?action=sitemap" title="' . $txt['seo4smf_sitemap'] . '">' . $txt['seo4smf_sitemap'] . '</a>';

index_template.php
if (!empty($modSettings['seo4smf_enable_sitemap']) && !empty($modSettings['seo4smf_sitemap_show']) && $modSettings['seo4smf_sitemap_show'] != 2)
echo'
<li><a href="', $scripturl, '?action=sitemap" title="', $txt['seo4smf_sitemap'], '"><span>', $txt['seo4smf_sitemap'], '</span></a></li>';


seo4smf_template.php
function template_seo4smf_sitemap_index()
{
    global $scripturl, $context, $txt;

    echo '
    <div style="width: 60%; margin-left: auto; margin-right: auto;">
    <div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft">', $txt['seo4smf_sitemap'], ' - ', $context['forum_name'], '</span>
</h3>
</div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">';
foreach ($context['jump_to'] as $category)
{
echo'
<span style="font-size: 1.1em; font-weight: bold;">', $category['name'], '</span>:<br />
<ul style="list-style: none;">';
foreach ($category['boards'] as $board)
echo '
<li style="padding-left: 10px;">' . str_repeat('&nbsp;&nbsp;&nbsp; ', $board['child_level']) . ' <a href="'.$scripturl.'?action=sitemap;b='.$board['id'].'">' . $board['name'] . '</a></li>';

echo'
</ul><br />';
}
echo'
</div>
<span class="botslice"><span></span></span>
</div>
<a href="', $scripturl, '?action=sitemap;xml">XML Format</a>
    </div>';
}

Illori

since this is related to a mod you are using, you should post in the mods support topic.

Illori

Quote from: Livaco on July 26, 2015, 02:12:25 PM
No try and find where the file is, open it and paste the code

Like This

it is not helpful for someone to tell a user to post some code unless you know what exactly the user should be posting and WHY you need them to post it. posting random code does not help to solve the problem.

also as i said above since this is a mod the op should post in the mods support topic.

nyksPhilae

SOLVED

it's just index.turkish-utf8.php (utf-8 without BOM) encode problem

Advertisement: