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

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\qa\qa-lang\pl\qa-lang-options.php:1) in C:\wamp\www\qa\qa-include\qa-page.php on line 205
(...
callstack
...)

The fast solution is to convert my language files to UTF-8 without BOM.

However it is not very elegant  feature if I cannot use UTF-8 with BOM.

 

EDIT: The same problem is present with theme files.
EDIT 2: The same problem is present with plugin files.

Q2A version: 1.5

1 Answer

+2 votes
by
This is a PHP issue, and I don't think Q2A can do anything about it.
by
However it worked in 1.4.3.
I have Polish translation files (UTF-8 BOM) and they worked well until I upgraded to 1.5.

Maybe some code from 1.5 causes this warnings...
by
It may be that these files are being loaded at a different time to before, so now the BOM is causing a problem, but it wasn't before. However I'm afraid the answer is still to remove BOM marks from PHP files. PHP will output the BOM before the <?php tag and Q2A can't prevent that.
by
It sounds quite unusual. I always used php files with BOM in my programs and they worked okay. Maybe there is some workaround? Or the problem reason isn't so hopeless?
by
I'm afraid I don't know much more - perhaps someone with greater experience of PHP's internals can shed more light on the subject. I know I have personally always had problems when starting PHP files with a UTF-8 BOM.
by
Ok then. So it could be useful to add a notice in theme and plugin instruction that people need to use UTF8 without byte order mark.

Thanks for great quality product!
by
Good idea - will do.
...