WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] This page contains the following errors: error on line 1 at column 40: XML decl (5 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 any sitemap 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?

    How can I fix this? anybody know smoething about?

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    Download all of the files from your server and with dreamweaver or something like it, do a search of all the files in the folder (including subfolders) for iframe or co.tv.

  3. noslan
    Member
    Posted 2 years ago #

    I began to do it, with notepad++, and it seems that will be the unique way to do it cos DB is clean :@

  4. Jonas Grumby
    Member
    Posted 2 years ago #

    I'm not familiar with notepad++ but there are several programs that will do an advanced search that includes all the files in the folder and subfolders.

  5. noslan
    Member
    Posted 2 years ago #

    fixed...

    Finally it was a base64 encoded code inside index.php.... they hacked me, but I've learnt tooooooooooons of things ;)

Topic Closed

This topic has been closed to new replies.

About this Topic