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

Mpff.. I again get those error messages :(

PHP Warning:  Cannot modify header information - headers already sent by (output started at /qa-include/qa-base.php(510) : eval()'d code:1) in /qa-include/qa-page.php on line 363

I tried to find the mistake, I know that it could be UTF-8 instead of UTF8-without-BOM-encoding. But all files I checked were okay.

Line 363 of qa-page.php is:  header('Content-type: '.$qa_content['content_type']); How can help?

 

All php files start with "<?php" and I could not find any file in pure "UTF8" encoding.

header('Content-type: '.$qa_content['content_type']);header('Content-type: '.$qa_content['content_type']);header('Content-type: '.$qa_content['content_type']);
Q2A version: 1.6.2
by
PS: I set up Notepad Plus to open all files with UTF8-without-BOM and save them in this format. Could that be problematic? Are there any files (core?) that are not allowed to be saved in UTF8-without-BOM?
by
edited by
Line 510 in my qa-theme.php is "$this->output_raw($scriptline);"
It outputs a custom javascript link to a jquery CDN.

I moved it to line 511 to see if it is the mistake, but it is not. Still showing up qa-base.php(510).

1 Answer

+2 votes
by
D*mn it. Or better put: Luckily I found it!

In one of my plugins I had indeed a TAB before the starting <?php

Must be a typo when programming last night until 3.30 am. I should really go to bed and not do so much q2a, maybe I am addicted 8-)
by
once I spent 3 hours trying to find out why the code I wrote to import csv files into Q2A doesn't work correctly. it turns out csv file should have had a 'utf8 without boom' charset. it's unfair how this problems waist our time.
...