Note that there are some explanatory texts on larger screens.

plurals
  1. POUnderstanding cache limiter | headers already sent php warning
    primarykey
    data
    text
    <p>I have a site that is functioning fine, but just by refreshing the main page (index_3.php) my error log populates with two warnings.</p> <pre><code>[08-Oct-2013 11:36:09] PHP Warning: session_start() [&lt;a href='function.session-start'&gt;function.session-start&lt;/a&gt;]: Cannot send session cache limiter - headers already sent (output started at /home2/mysite/public_html/mysubsite/index_3.php:7) in /home2/mysite/public_html/mysubsite/functions.php on line 12 [08-Oct-2013 11:36:09] PHP Warning: session_regenerate_id() [&lt;a href='function.session-regenerate-id'&gt;function.session-regenerate-id&lt;/a&gt;]: Cannot regenerate session id - headers already sent in /home2/mysite/public_html/mysubsite/functions.php on line 13 </code></pre> <p>I have researched enough to understand that something is sending the page data before the session begins, but I can't seem to root out the cause. functions.php is taken right from this tutorial site under "Create PHP Functions." <a href="http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL" rel="nofollow">http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL</a></p> <p>Also loading on index_3.php is get_opwire.php which just places a table. The beginning of get_opwire.php looks like:</p> <pre><code>&lt;?php include 'db_connect.php'; include 'functions.php'; sec_session_start(); </code></pre> <p><code>sec_session_start();</code> is a custom session start located in functions.php</p> <p>When I try to rearrange the order of the sec_session to the top or shift those around the table breaks. Index_3.php is just the main page, mostly html that has includes for a submit form and get_opwire.php</p> <p>Would someone be able to help point me to the problem?</p> <p>Edit: index_3.php (from line 1 through )</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"/&gt; &lt;meta name="Generator" content="Xara HTML filter v.6.0.1.335"/&gt; &lt;meta name="XAR Files" content="index_htm_files/xr_files.txt"/&gt; &lt;title&gt;index_3&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt; &lt;link rel="stylesheet" type="text/css" href="index_htm_files/xr_main.css"/&gt; &lt;link rel="stylesheet" type="text/css" href="index_htm_files/xr_text.css"/&gt; &lt;link rel="stylesheet" type="text/css" href="index_htm_files/custom_styles.css"/&gt; &lt;script type="text/javascript" src="index_htm_files/roe.js"&gt;&lt;/script&gt; &lt;!--[if IE]&gt;&lt;script type="text/javascript" src="index_htm_files/prs.js"&gt;&lt;/script&gt;&lt;![endif]--&gt;&lt;!--[if !IE]&gt;--&gt;&lt;script type="text/javascript" src="index_htm_files/prs3.js"&gt;&lt;/script&gt;&lt;!--&lt;![endif]--&gt; &lt;script type="text/javascript"&gt;var xr_nextpage=""; var xr_transition=0; var xr_transitiontime=0;var xr_prevpage="index_2.htm"; var xr_btransition=0; var xr_btransitiontime=500;&lt;/script&gt; &lt;style type="text/css"&gt;.xr_pbd {position: absolute; border:none; left: 50%; margin-left: -380px;}&lt;/style&gt; &lt;/head&gt; </code></pre> <p><strong>EDIT 2: somewhere inside index_3.php</strong></p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div style="width: 480px; height: 175px; overflow: auto;"&gt; &lt;?php include 'get_opwire.php'; ?&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload