Alright, I was not able to find a problem like mine anywhere else, so here it is.
I am using a login function to login a user. After they put their data in, I send it through the function. This then returns values based on the result, which is used by a switch to display results to the user. If they get logged in, a cookie is set in the function. The switch then uses header('Location: /')
to redirect the user.
The problem with this is that when I try using Bootstrap, it throws this error:
Warning: Cannot modify header information - headers already sent by
(output started at C:\wamp\www\assets\php\header.php:89) in
C:\wamp\www\assets\classes\Shortener.php on line 163
header.php; line 89: <br/><br/><br/>
(this is the end of the file)
Shortener.php (login function); line 163:
setcookie('session', $db_session_hash, time()+3600, "/");
If I remove the bootstrap parts of this, it works absolutely fine! (which angers me the most)
header.php: https://pastebin.com/jnGtHSUy
Shortener.php (login function only): https://pastebin.com/i6CG54hw
I hope this is enough information. I've been angry at this ever since I've been getting this error.