Jump to content
Sign in to follow this  
TheMichtoKE

Sitemap problem

Recommended Posts

Hello i have a problem with google search console.

This error appears when i upload sitemap.php

Quote

Sitemap index can be read but contains errors

Missing xml tag

This tag was not found. Add it and try again

Exemples

Ligne 2      Parent tag:  sitemapindex

                  Tag: sitemap

a solution ? to resolve this problem ?

Thanks in advance :) 

Share this post


Link to post
Share on other sites

I think you need to upload an xml file and not php file.

Share this post


Link to post
Share on other sites

Thanks for your answer ! :) 

I thought about it too but why is it a .php file?
How do I configure the .xml file?

Share this post


Link to post
Share on other sites

Its a php file because then it is able to generate the sitemap dynamically. Just copy and paste the text to an xml file. 

Share this post


Link to post
Share on other sites

thanks but in my php file i have this

 

\define('REPORT_EXCEPTIONS', TRUE);
$_SERVER['SCRIPT_FILENAME']	= __FILE__;
$path	= '';

$_GET['app']		= 'core';
$_GET['module']		= 'sitemap';
$_GET['controller']	= 'sitemap';

require_once $path . 'init.php';

if ( \IPS\Request::i()->testsettings )
{
    exit;
}

\IPS\Dispatcher\External::i()->run();

 

Share this post


Link to post
Share on other sites

No, run that on the website and copy the text it give you and paste it to a xml file. 

Share this post


Link to post
Share on other sites
What do you think? Remember the human.
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...