Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.3k views
in Q2A Core by
edited by

The result, if I type directly the URL in the adress bar (http://www.wikidee.net/?qa=feed/questions.rss) of the browser is :

 

This page contains the following errors:

error on line 1 at column 6: XML declaration allowed only at the start of the document

Below is a rendering of the page up to the first error.

I tried to reinstall the previous version (1.3) of qa-feed.php, with the same results...  

Thanx for your help.

A Validator says it's a parsing error :

 

Sorry

This feed does not validate.

  • line 1, column 1: XML parsing error: <unknown>:1:1: not well-formed (invalid token) [help]

    <?xml version="1.0" encoding="UTF-8"?>
     ^

Source: http://www.wikidee.net/?qa=feed/questions.rss

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <rss version="2.0">

1 Answer

+2 votes
by
 
Best answer

This is due to a UTF-8 BOM (byte-order mark) at the start of qa-util-string.php - I've re-uploaded version 1.3.3 with a fixed version of this file, which you should use to replace your current qa-util-string.php file.

by
Thanks a lot Giddeon !  I'll download the new file.  By the way, you remind me I was supposed to send you the French translation...
by
edited by
Hello, i have the same problem, i try to download the file and transfert to my server but the problem is again ???
edit :
error on line 1 at column 6: XML declaration allowed only at the start of the document
I have a caracter before <?xml version="1.0" encoding="iso-8859-15"?>

Edit2 : i have just edit : qa-feed.php to change in line 266
$lines[]='<?xml version="1.0" encoding="iso-8859-15"?>';
...