• Resolved Remco20

    (@remco20)


    I am getting the following error after updating to 14.0:

    Fatal error: Uncaught Error: Undefined constant ‘DB_CHARSET’ in /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/initializers/database-setup.php:110 Stack trace: #0 /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/initializers/database-setup.php(52): Yoast\WP\SEO\Initializers\Database_Setup->get_connection_string() #1 /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/loader.php(145): Yoast\WP\SEO\Initializers\Database_Setup->initialize() #2 /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/loader.php(111): Yoast\WP\SEO\Loader->load_initializers() #3 /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/main.php(81): Yoast\WP\SEO\Loader->load() #4 /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/functions.php(26): Yoast\WP\SEO\Main->load() #5 /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/wp-seo-main.php(346): YoastSEO() #6 / in /var/www/vhosts/*****/httpdocs/wp-content/plugins/wordpress-seo/src/initializers/database-setup.php on line 110

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Joost de Valk

    (@joostdevalk)

    @remco20 I’m… surprised this happens. And even more surprised that people don’t have a charset defined in their wp-config.

    What is the charset of your mysql database? Could you set it explicitly in your wp-config? The default wp-config.php has the following:

    
    /* MySQL settings */
    define( 'DB_NAME',     'database_name_here' );
    define( 'DB_USER',     'username_here' );
    define( 'DB_PASSWORD', 'password_here' );
    define( 'DB_HOST',     'localhost' );
    define( 'DB_CHARSET',  'utf8mb4' );
    
    Plugin Contributor Joost de Valk

    (@joostdevalk)

    (it’s unfortunate that this happens though, and relatively easy for us to patch this so we’re looking at that now)

    Thread Starter Remco20

    (@remco20)

    If I add define( ‘DB_CHARSET’, ‘utf8mb4’ ); to wp-config.php, Yoast SEO is working again, but now I get other error messages from other plugins. If I remove define( ‘DB_CHARSET’, ‘utf8mb4’ ); from wp-config.php these error messages disappear, however I have to deactivate Yoast.

    Plugin Support devnihil

    (@devnihil)

    @remco20 Can you please confirm whether the issue still occurs when you are using the most recent Yoast v14.0.4? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/
    ?
    ?If you update to the most current version of Yoast SEO, does this resolve the issue?

    Thread Starter Remco20

    (@remco20)

    My problem is solved. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatale error after update to 14.0’ is closed to new replies.