WordPress Error – Warning: Cannot modify header information

Solution:1

The error is trigged in core, but the reason is probably in your theme. I’m guessing one of your php files has a space or linefeed before or after the php tags.

Solution:2

How to Fix Warning: Cannot modify header information in WordPress.

    • Too many spaces before, in between or after the beginning PHP tags
    • There are too many unneeded spaces or blank lines in a specific part of a document
    • Incorrect PHP Encoding Format.

1. Open wp-config with editor, and remove all spaces before “<?php” and after “?>“