Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How can I fix following when i got error try to upgrate as Ver. 1?

0 votes
I got error as following:

qa-app-users.php on line 181
/qa-app-users.php on line 192
/qa-index.php on line 528
asked Apr 11, 2010 in Q2A Core by minnkyaw
edited Apr 11, 2010 by minnkyaw

1 Answer

0 votes
All of these lines are trying to set HTTP headers. I cannot be sure unless you show the error in full, but I suspect this is because something has already been output to the browser by the time these lines are reached, so the HTTP headers can no longer be set.

I don't think this is a problem in the release itself, so perhaps you modified a file, maybe accidentally. It can be as simple as a blank line outside of <?php ?> tags, creating by a mistaken press of the return key on your keyboard.

If you view the error in full, it should tell you exactly where this output happened - in which file, and in which line, so you can check there.
answered Apr 11, 2010 by gidgreen
when i edit to qa_base.php for replaced some funtions I got error as above.
 I replaced as

  function qa_q_request($postid, $title)
    {
        return (int)$postid;
    }
I got it and it is happened because of you changed $postid to $questionid.

Thank.