Support » Fixing WordPress » PHP errorConstant WP_CACHE_KEY_SALT already defined

  • I am getting a PHP error on all of my pages as I only have very basic knowledge I have no idea how to fix it. Any help much appreciated this is the error.

    Constant WP_CACHE_KEY_SALT already defined

    Thanks in advance.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @nickporter2! I would recommend double-checking the syntax in your wp-config.php. Are you using WP_CACHE_KEY_SALT twice?

    Thread Starter Nick Porter


    Thanks Roxy
    I also spoke to my hosting company and they replied with this which has fixed the problem.

    Looks like the WP_CACHE_KEY_SALT was in fact already defined in wp-config.php and it wasn’t necessary in this case as we use our own version (it’s probably a leftover from the old hosting if the site has been migrated).

    I’ve commented it out and you shouldn’t see any warnings about that anymore.

    I’m so glad you were able to get it figured out 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP errorConstant WP_CACHE_KEY_SALT already defined’ is closed to new replies.