I am getting this error:
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\header.php:166) in C:\wamp\www\stuffs.php on line 86
Header.php
<aside id="route_header">
<ul>
<li id="welcome">
<a href="<?php echo $username_db?>"><?php echo "Hello $fname_db";?></a>
</li>
<li id="forback">
<span id="click_requests">
<img src="images/group_req.png" width="25px" height="25px">
<span id="request_number">0</span>
</span>
<div id="group_request_wrapper">
<div>
<span>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
</span>
</div>
<div id="read_all_requests">
<a href="#">Read all</a>
</div>
</div>
</li>
<li id="search_form_header">
<form role="search" id="search_form" method="get">
<input type="search" placeholder="Search..."/>
</form>
</li>
<li id="personalFLink"><a href="/personal">Personal</a></li>
<li id="settings">
<a href="/settings">Settings</a>
<!--<img class="settings_image" src="images/settings.png" width="20px" height="20px">
<ul id="drop_down_settings">
<li>Settings</li>
<li>Privacy</li>
</ul>-->
</li>
<li id="logout_header"><a href="/end_session.php">Logout</a></li>
</ul>
</aside>
</h1>
</header>
<div id="main_bottom_wrapper">
where
<div id="main_bottom_wrapper>
is my line 166 in header.php.
This is half the code. But the thing is, my header was working perfectly until I added the following code in header.php :
<span>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
</span>
I don't know what but it has everything to do with these lines code. I tried to replace the div with ul/ li/ span/ but nothing is working.
I might be missing out the obvious but I just can't seem to find the solution.
stuffs.php
if(mysqli_query($con, $gcontent_query)){
header("Location:/".$group_url."&".$fname_key);
exit();
}
This is my line 86.
P.S: There are no whitespace/newline issues so skip that answer. No echo/print error because it did work before, but after adding that code it won't work anymore.