How to fix headers already sent error

Warning: Cannot modify header information – headers already sent (output started at script:line)

How to fix?

To fix  headers already sent error,you need to check following steps:

Check if you have any output before headers are sent.

Output can be:

  • Unintentional:
    • Whitespace before <?php and after ?>
    • The UTF-8 Byte Order Mark specifically
    • Other error messages or notices
  • Intentional:
    • print, echo and other functions producing output
    • Raw <html> sections prior <?php code

To fix error,you need to remove any content,whitespace or character before <?php  tags.

If the error persists please contact us: and we will help you!