• Hi –

    I created a starter site to use with basic plugins and using the GeneratePress framework to created new sites. The “starter” site is fine but any sites I use this starter site gets the following warnings.

    From Query Monitor:

    WarningConstant NONCE_SALT already defined
    wp-config.php:88
    1WordPress Core

    And in the debug log I get these:

    [Tue Jul 01 12:25:04.571166 2025] [proxy_fcgi:error] [pid 370619:tid 370675] [client ...:0] AH01071: Got error 'PHP message: PHP Warning: Constant AUTH_KEY already defined in /home/5..com//public_html/wp-config.php on line 81; PHP message: PHP Warning: Constant SECURE_AUTH_KEY already defined in /home/5..com//public_html/wp-config.php on line 82; PHP message: PHP Warning: Constant LOGGED_IN_KEY already defined in /home/5..com//public_html/wp-config.php on line 83; PHP message: PHP Warning: Constant NONCE_KEY already defined in /home/5..com//public_html/wp-config.php on line 84; PHP message: PHP Warning: Constant AUTH_SALT already defined in /home/5..com//public_html/wp-config.php on line 85; PHP message: PHP Warning: Constant SECURE_AUTH_SALT already defined in /home/5..com//public_html/wp-config.php on line 86; PHP message: PHP Warning: Constant LOGGED_IN_SALT already defined in /home/5..com//public_html/wp-config.php on line 87; PHP message: PHP Warning: Constant NONCE_SALT already defined in /home/5..com//public_html/wp-config.php on line 88'

    But I only see it once in wp-config file?

    I’m at a loss on how to begin to fix this. Would anyone have any insight on what could be causing this?

    Here is the sites info:

    Theme GeneratePress

    Plugins:

    Advanced Custom Fields Version 6.4.2 | By WP Engine

    Anti-Spam by CleanTalk Version 6.58.1 | By CleanTalk

    Block Visibility Version 3.7.1 | By Nick Diego

    Breeze Version 2.2.14 | By Cloudways

    Contact Form 7 Version 6.1 | By Takayuki Miyoshi

    Duplicator Version 1.5.12 | By Duplicator

    EWWW Image Optimizer Version 8.1.4

    GenerateBlocks Version 2.1.0

    GenerateBlocks Pro Version 2.2.0 | By Tom Usborne

    GP Premium Version 2.5.3 | By Tom Usborne

    Object Cache Pro Version 1.24.2 | By Rhubarb Group

    Query Monitor Version 3.18.0 | By John Blackbourn

    Security by CleanTalk Version 2.159 | By CleanTalk Security

    SVG Support Version 2.5.14

    Ultra Addons for Contact Form 7 Version 3.5.22 | By Themefic
    • This topic was modified 11 months, 2 weeks ago by Jan Dembowski.
    • This topic was modified 11 months, 2 weeks ago by Jan Dembowski. Reason: Removed wp-config.php that included salt values

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    The message states that a constant defined in wp-config.php has already been defined before. You would therefore have to check whether and where this additional definition occurs.

    Unfortunately, your source codes here in the forum are hardly readable, so it is difficult for me to say anything more precise. Please use the code block for codes in future: https://ww.wp.xz.cn/support/forum-user-guide/block-editor/#code-block

    Based on the error, it seems there’s a duplicate on the key, so make sure there’s a duplicate for this value


    define('AUTH_KEY','');
    define('SECURE_AUTH_KEY','');
    define('LOGGED_IN_KEY','');
    define('NONCE_KEY','');
    define('AUTH_SALT','');
    define('SECURE_AUTH_SALT','');
    define('LOGGED_IN_SALT','');
    define('NONCE_SALT','');
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Constant Keys already defined warnings’ is closed to new replies.