Title: [Plugin: w3 total cache] Error with object_cache while using disk
Last modified: August 20, 2016

---

# [Plugin: w3 total cache] Error with object_cache while using disk

 *  Resolved [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-w3-total-cache-plugin-w3-total-cache-error-with-object_cache-while-using-disk/)
 * We are having troubles retrieving an object with get_option() when object_cache
   is activated and the disk is used. We get this error
 * > Ai1ec_Settings::get_instance(): The script tried to execute a method or access
   > a property of an incomplete object. Please ensure that the class definition“
   > Ai1ec_Settings” of the object you are trying to operate on was loaded _before_
   > unserialize() gets called or provide a __autoload() function to load the class
   > definition
 * The error happens just after we save the option to the db and the ObjectCache
   Class retrieves it from disk. We have no problem when the opcode cache is used,
   maybe there are problems in the serialization of the object or there are some
   limitations, we are storing an instance of a singleton.
 * If i add “options” to the back-end where you specify the groups not to persist
   the problem is not present.
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-plugin-w3-total-cache-error-with-object_cache-while-using-disk/#post-2710563)
 * This issue is fixed in the next release.
 *  Thread Starter [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * (@nicolapeluchetti)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-plugin-w3-total-cache-error-with-object_cache-while-using-disk/#post-2710564)
 * Cool, i had fixed this by setting $autoload to false in add_option() but thanks,
   for older versions of our plugins this will be super useful 🙂
 * `add_option( $option, $value, $deprecated, $autoload );`

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

The topic ‘[Plugin: w3 total cache] Error with object_cache while using disk’ is
closed to new replies.

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

## Tags

 * [serialization](https://wordpress.org/support/topic-tag/serialization/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nicola Peluchetti](https://wordpress.org/support/users/nicolapeluchetti/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-plugin-w3-total-cache-error-with-object_cache-while-using-disk/#post-2710564)
 * Status: resolved