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

Hi Guys,

 

I am trying to install q2a for the first time and receiving this error while installing... Please let me know the solution for the same.

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home3/codesms1/public_html/cat/qa/qa-include/qa-install.php:39) in/home3/codesms1/public_html/cat/qa/qa-include/app/users.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home3/codesms1/public_html/cat/qa/qa-include/qa-install.php:39) in /home3/codesms1/public_html/cat/qa/qa-include/app/users.php on line 183

Congratulations - Your Question2Answer site is ready to go!

You are logged in as the super administrator and can start changing settings.

Thank you for installing Question2Answer.

 

Thanks

Q2A version: 1.6.3

1 Answer

+1 vote
by
selected by
 
Best answer

The cause of this error is Q2A installer. I do not have any fine verification. But error will not output in the correction below. I hope to be corrected in V1.7.

qa-include/qa-install.php (around L40) Comment out HTML

/* Comment out (Moved from ...)
?>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <style type="text/css">
      body,input {font-size:16px; font-family:Verdana, Arial, Helvetica, sans-serif;}
      body {text-align:center; width:640px; margin:64px auto;}
      table {margin: 16px auto;}
    </style>
  </head>
  <body>
<?php
*/
qa-include/qa-install.php (around L284) Insert HTML before outputting of "<form method="post" actio ..." tag
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <style type="text/css">
      body,input {font-size:16px; font-family:Verdana, Arial, Helvetica, sans-serif;}
      body {text-align:center; width:640px; margin:64px auto;}
      table {margin: 16px auto;}
    </style>
  </head>
<body>

 

by
Additional information:

I was consulting with Scott. You can avoid the warning with above modification. However, there seems to be a side effect.
https://github.com/q2a/question2answer/issues/150

Please see below for how to fix no side effects.
https://github.com/q2a/question2answer/blob/2d5a59824de0b72b72ec68684bb562a81b329660/qa-include/qa-install.php
...