• Resolved richards1052

    (@richards1052)


    My web host tells me that he believes there is a conflict between WP Optimize and Yoast SEO. He told me that the following code was modified and caused Yoast to fail:

    [28-Apr-2020 07:35:14 UTC] PHP Fatal error: Uncaught Error: Undefined constant 'DB_CHARSET' in /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/initializers/database-setup.php:110
    Stack trace:
    #0 /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/initializers/database-setup.php(52): Yoast\WP\SEO\Initializers\Database_Setup->get_connection_string()
    #1 /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/loader.php(145): Yoast\WP\SEO\Initializers\Database_Setup->initialize()
    #2 /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/loader.php(111): Yoast\WP\SEO\Loader->load_initializers()
    #3 /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/main.php(81): Yoast\WP\SEO\Loader->load()
    #4 /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/functions.php(26): Yoast\WP\SEO\Main->load()
    #5 /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/wp-seo-main.php(346): Y in /var/www/richardsilverstein.com/public_html/wp-content/plugins/wordpress-seo/src/initializers/database-setup.php on line 110
    
    I checked your wp-config.php, did you edit it or plugin changed it?
    
    these two lines were commented, I uncommented, I put yoast seo plugin back, can you activate it and check again?
    
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', 'utf8_unicode_ci');
    

    That rendered my entire installation inaccessible to me. I had to use recovery mode to deactivate Yoast.

    But after I did this I found that the character sets were corrupted and we had to revert the installation. Now I have both plugins active and there are currently no problems. But I am leery of continuing to use WP-Optimize if it might cause a similar future conflict.

    Can you review this and tell me if you can figure out what might have happened?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    What makes your host believe that there’s a link between WP-Optimize and what happened? There’s no clue in what you share pointing in that direction.

    The plugin doesn’t touch any of those constants in wp-config.php.

    If you enable page caching, the constant define('WP_CACHE', true); will be added at the top of the file, but that’s all.

    If your host can share their reasons for believing WP-Optimize might have caused this, we can investigate. Otherwise, there isn’t enough information for us to look.

    Best wishes,
    Marc.

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    I’ve also reviewed this and formed the same conclusion; there’s nothing in the supplied information that indicates anything associated with WP-Optimize. At a guess, I’d say that the hosting support saw something to do with databases in the error message, saw that WP-Optimize is also something to do with databases, and formed a conclusion in a 1 + 1 = 11 sort of way.

    Thread Starter richards1052

    (@richards1052)

    The bug was in Yoast SEO. It took me a while to get this information from the plugin author.

    Whatever my host found that related this to WP Optimize was not relevant.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Yoast SEO conflict’ is closed to new replies.