最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

XML error on sitemap.xml

matteradmin10PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

When I visit sitemap.xml of my WordPress website I see this error. Here is the image

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

When I visit sitemap.xml of my WordPress website I see this error. Here is the image

Share Improve this question edited Feb 26, 2019 at 10:21 Fabrizio Mele 6875 silver badges16 bronze badges asked Feb 26, 2019 at 8:55 KhalilKhalil 33 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

This is probably due to empty lines inside your custom php files. Try checking every php file you edited for empty lines after the ?> closing tag: the tag should be the last character of any file.

I look for empty lines inside every PHP files but I didn't find any but at last, I found the solution the error was due to a function which I declare in my functions.php file, the function was register_sidebar(); but I was not using it in my theme anywhere. When I removed this function in my functions.php file then sitemap.xml of my website working correctly

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far