Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
613 views
in Q2A Core by

 

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.

My website: http://2na5.ru version 1.4

1 Answer

+1 vote
by

There is a UTF-8 BOM (byte order mark) at the start of your page output, which is invisible in most web browsers or text readers, but breaks the XML parsing.

Please try updating to Q2A 1.4.1, which will replace all Q2A core files, removing any BOMs that may have found their way into the core code. Then, if you have modified any files yourself (e.g. qa-theme.php), please save them in a text editor in UTF-8 without the byte-order mark.

by
updated to Q2A 1.4.1 does not work
What should I do? Help please!
by
I think you still have the BOM on your site. Check all your custom PHP files like theme files, etc. Try installing Notepad++ and then run "Encoding > Convert to UTF-8 without BOM" in the menu, and save.

Or open the files, go to the very first character (Ctrl+Home) and make sure there's nothing before the <?php by pressing Delete. If you delete the < then the file is fine, but you may find hitting Delete the first time appears to do nothing/ Don't forget to put the < back if you do delete it.
by
Thank you very much!
The problem in language files
...