Support » Fixing WordPress » This page contains the following errors: error on line 1 at column 40: XML decl

  • Resolved noslan

    (@bipies)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

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

    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.

    fixed…

    Finally it was a base64 encoded code inside index.php…. they hacked me, but I’ve learnt tooooooooooons of things 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘This page contains the following errors: error on line 1 at column 40: XML decl’ is closed to new replies.