0

The error is as follows:

"Warning: Cannot modify header information - headers already sent by (output started at /public_html/header.php:6) in /public_html/includes/permEvent.inc.php on line 67"

The line 67 of permEvent.inc.php:

// Clear form fields
if (isset($_POST['clr'])) {
  header("location: ./permEvent_pass.php");
}

and the line 6 of the header.php:

<?php
if (!isset($_SESSION['user_info'])) {
  session_start();
}
?>
<!DOCTYPE html>
<html lang="ko" dir="ltr">
  <head>
    <meta charset="utf-8">
          .
          .

As you can see, I have no extra line or a space between Closing tag "?>" and start of HTML in header.php

I've tried everything without a solution.

If someone can help out, I'd appreciate it very much!

Thanks in advance.

Keith

Keith
  • 31
  • 6
  • View the source in the browser, and see if there's any data sent before the error message – aynber Feb 26 '20 at 17:45
  • 1
    The problem is that `header.php` produces output starting with ` ` – Barmar Feb 26 '20 at 17:46
  • And you're including `header.php` before you call `header()` in `permEvent.inc.php` – Barmar Feb 26 '20 at 17:46
  • I've not included header.php in the permEvent.inc.php - if you mean by "include 'header.php'; ". So, what would be the best solution? – Keith Feb 26 '20 at 22:10

0 Answers0