Title: Error messages PHP
Last modified: June 20, 2022

---

# Error messages PHP

 *  Resolved [oriver](https://wordpress.org/support/users/oriver/)
 * (@oriver)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/)
 * Hi,
 * I was repeatedly receiving this error message:
    [ERROR] : WP_CACHE constant is
   not present in wp-config.php
 * My host server very kindly looked into this:
 * “This error is caused when the WP-Optimize plugin is unable to add the constant
   to the wp-config.php file.
 * The permission of the wp-config.php file is already set to 0644 which is correct.
   To resolve this error, I added the following line just after <?php in the wp-
   config.php file:
 * define(‘WP_CACHE’, true); // WP-Optimize Cache”
 * However, I’m now receiving this error message instead:
    [ERROR] : WPO_ADVANCED_CACHE
   constant is not present in advanced-cache.php
 * Would appreciate any help, thank you.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Venkat Raj](https://wordpress.org/support/users/webulous/)
 * (@webulous)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15754735)
 * Hi [@oriver](https://wordpress.org/support/users/oriver/),
 * Please make sure you are updated latest version `3.2.6` which has the fix for
   this issue
 *  [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15756728)
 * We have 3.2.6 on several sites, and they’re all still throwing the following 
   error:
 * > [ERROR] : WPO_ADVANCED_CACHE constant is not present in advanced-cache.php
   > [
   > ERROR] : WPO_ADVANCED_CACHE constant is not present in advanced-cache.php
 *  Plugin Contributor [Venkat Raj](https://wordpress.org/support/users/webulous/)
 * (@webulous)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15758671)
 * Hi [@markhowellsmead](https://wordpress.org/support/users/markhowellsmead/),
 * Could you please try to turn off and on the cache feature? or deactivate/activate
   WP-Optimize?
 * If the problem still exists, please submit a ticket here for further investigation
   
   [https://getwpo.com/ask-pre-sales-question/](https://getwpo.com/ask-pre-sales-question/)
    -  This reply was modified 3 years, 11 months ago by [Venkat Raj](https://wordpress.org/support/users/webulous/).
 *  [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15759448)
 * I have done so, and it makes no difference.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15762630)
 * [@markhowellsmead](https://wordpress.org/support/users/markhowellsmead/) We have
   received your ticket and we are working on the same.
 *  [Mark Howells-Mead](https://wordpress.org/support/users/markhowellsmead/)
 * (@markhowellsmead)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15763700)
 * I have cleared the relevant constants from wp-config.php and re-installed the
   latest version of the plugin from the plugin directory. So far, the error message
   hasn’t recurred.
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15764205)
 * [@markhowellsmead](https://wordpress.org/support/users/markhowellsmead/) Glad
   to know the error message recurred, please keep an eye if occurs again
 *  [the9mm](https://wordpress.org/support/users/the9mm/)
 * (@the9mm)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15786756)
 * I have this issue as well. Now seeing this error occurring on multiple sites.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error messages PHP’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [the9mm](https://wordpress.org/support/users/the9mm/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/error-messages-php/#post-15786756)
 * Status: resolved