Cannot modify header information – headers already sent by dashboard.php
-
Hi,
I don’t know how this makes sense, but when I add the following line to wp-config to set the environment variable, it’ll throw an error from your plugin on the dashboard.
define( ‘WP_ENVIRONMENT_TYPE’, ‘development’ );
Explanation about WP_ENVIRONMENT_TYPE
Warning: Cannot modify header information – headers already sent by (output started at /usr/www/users/abc/dev.abc.com/wp-content/plugins/white-label/functions/dashboard.php:59) in /usr/www/users/abc/dev.abc.com/wp-admin/admin-header.php on line 9
This message is shown directly below the WordPress admin bar.
Here is the line the error is referring to
https://app.screencast.com/5JBK521fxtqVS
- The topic ‘Cannot modify header information – headers already sent by dashboard.php’ is closed to new replies.