To turn off the notices in your WordPress site, include the following line in wp-config.php
file
define(‘WP_DEBUG’, false);
You can find more details on editing wp-config.php
file from the codex.
Turning off the error messages without fixing it, is never that good an idea…
You need to make sure that ‘DB_COLLATE’ is defined in your wp_config.php file:
i.e.
define('DB_COLLATE', '');
or whatever is appropriate for your database setup, you should be able to figure it out by looking at PHPMyadmin or equivalent.
See, https://core.trac.wordpress.org/ticket/37683
I have few errors when i upload my custom theme to new fresh install of wordpress 4.6. These are the errors i receive:
When i try to log in trough wp-admin
-Cannot modify header information – headers already sent on /pluggable.php on line 1174
When i try to log in trough wp-login.php
-Cannot modify header information – headers already sent on /wp-login.php on line 402
-/wp-login.php on line 415.
Please help me out
I have the plague described in the original post, too, as do several other sites.
It looks like a goof – a coding error – that will hopefully be cleaned up within a few days. Until then, I’ve just suppressed the NOTICE by affixing ‘@’ to the front of line 752 of wp-db.php.