• After updating to WordPress 4.6, my website displays every page with the error code:

    Notice: Undefined variable: charset in [root]/wp-includes/wp-db.php on line 752

    Notice: Undefined variable: collate in [root]/wp-includes/wp-db.php on line 752

    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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

    @fjbisset,

    Great, thanks.

    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

    Moderator keesiemeijer

    (@keesiemeijer)

    @viktor994

    Please start your own topic so someone will have a better chance of seeing it.
    https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress 4.6 Installation Error’ is closed to new replies.