WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] This page contains the following errors: error on line 1 at column 40: XML decl (3 posts)

  1. noslan
    Member
    Posted 2 years ago #

    Hi!;

    One of my site was hacked some time ago, and I recovered almost everything, but now when I try to generate a sitemap with your plugin I get this result when checking the file:

    This page contains the following errors:
    
    error on line 1 at column 40: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

    The real content is like this:

    <iframe src="http://*.co.tv/?go=1" width="1" height="1"></iframe><?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://*.com/wp-content/plugins/wordpress-seo/css/xml-sitemap.xsl"?>
    -----------------------------------------------------------------------^

    Yes, is obvius, this Iframe code is messing it all, somebody knows where I must search to rid off of this error?

    Thanks! and great plugin!

  2. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    This has nothing to do with the plugin, you've still got hacked code in your blog somewhere that outputs that iframe.

  3. noslan
    Member
    Posted 2 years ago #

    somebody knows where can I find the code?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic