Title: Why PHP WARNING in wp-config.php
Last modified: September 10, 2021

---

# Why PHP WARNING in wp-config.php

 *  Resolved [netesh](https://wordpress.org/support/users/netesh/)
 * (@netesh)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/why-php-warning-in-wp-config-php/)
 * **[10-Sep-2021 01:16:09 America/Boise] PHP Warning: Constant WP_CACHE already
   defined in /home/data//public_html/wp-config.php on line 7**
 *     ```
       [10-Sep-2021 01:13:21 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:21 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:22 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:23 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:24 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:25 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:28 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:28 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:29 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:13:30 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:16:09 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:17:51 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:26:52 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:27:01 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:27:02 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:27:05 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:27:07 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:27:09 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:27:11 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:31:25 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:33:46 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:33:49 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:33:50 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:36:52 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:36:53 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:37:02 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:37:02 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:37:02 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:37:55 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       [10-Sep-2021 01:38:00 America/Boise] PHP Warning:  Constant WP_CACHE already defined in /home/data//public_html/wp-config.php on line 7
       ```
   
    -  This topic was modified 4 years, 9 months ago by [netesh](https://wordpress.org/support/users/netesh/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/why-php-warning-in-wp-config-php/#post-14860546)
 * Hi,
 * search for word “WP_CACHE”
 * see if there is multiple lines like
 * `define( 'WP_CACHE', true);`
 * only keep one of them and remove rest of them.
 * Best regards,

Viewing 1 replies (of 1 total)

The topic ‘Why PHP WARNING in wp-config.php’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/why-php-warning-in-wp-config-php/#post-14860546)
 * Status: resolved