Title: Class “Memcache” Error
Last modified: April 8, 2020

---

# Class “Memcache” Error

 *  Resolved [catonebros](https://wordpress.org/support/users/catonebros/)
 * (@catonebros)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/)
 * I restored some backup data packages with Migrator, more precisely “Plugins”,“
   Themes”, “Uploads”, and it works all fine. Then I restored also “Others” but 
   when I returned to the WordPress dashboard, the site gave me this error:
 * Fatal error: Uncaught Error: Class ‘Memcache’ not found in /web/htdocs/www.coconinopress.
   it/home/wp-content/object-cache.php:430 Stack trace: #0 /web/htdocs/www.coconinopress.
   it/home/wp-content/object-cache.php(63): WP_Object_Cache->__construct() #1 /web/
   htdocs/www.coconinopress.it/home/wp-includes/load.php(580): wp_cache_init() #
   2 /web/htdocs/www.coconinopress.it/home/wp-settings.php(133): wp_start_object_cache()#
   3 /web/htdocs/www.coconinopress.it/home/wp-config.php(90): require_once(‘/web/
   htdocs/www…’) #4 /web/htdocs/www.coconinopress.it/home/wp-load.php(37): require_once(‘/
   web/htdocs/www…’) #5 /web/htdocs/www.coconinopress.it/home/wp-admin/admin.php(
   34): require_once(‘/web/htdocs/www…’) #6 /web/htdocs/www.coconinopress.it/home/
   wp-admin/options-general.php(10): require_once(‘/web/htdocs/www…’) #7 {main} 
   thrown in /web/htdocs/www.coconinopress.it/home/wp-content/object-cache.php on
   line 430
 * I miss to restore the last data backup package “Database”.
 * Do you have any solutions to fix the error?
    Thank you

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

 *  [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12648937)
 * [@catonebros](https://wordpress.org/support/users/catonebros/)
 * In short, you’re having this issue, because your webserver’s PHP is missing the
   memcache extension.
 * To correct the issue immediately, you can just delete the file
 *     ```
       /web/htdocs/www.coconinopress.it/home/wp-content/object-cache.php
       ```
   
 * And then once you install Memcache server as well as PHP’s Memcache extension,
   only then you should restore that file.
 *  Thread Starter [catonebros](https://wordpress.org/support/users/catonebros/)
 * (@catonebros)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12649129)
 * Thank you for the answer.
 * Please could you explain me how to install Memcache server and PHP’s Memcache
   exstension? Sorry but I’m not expert with this.
 * Thank you again
 *  [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12649251)
 * [@catonebros](https://wordpress.org/support/users/catonebros/)
 * If you haven’t yet installed these, I suggest you don’t try it out on your live
   server, and ask your system admin/server manager to get it done.
 * For the time being, just delete the file I mentioned earlier, WordPress can run
   without it. If you still want to get those things done yourself, I’ll need to
   know a few things first,
    1. Which Operating system is installed on the server and its version?
    2. Which version of PHP is installed?
    3. Which webserver is installed on your server and its version?
    4. Do you have root access to the server?
 * Once I have these, I’ll be able to tell you exactly what do to, to install get
   memcache working on the server
 *  Thread Starter [catonebros](https://wordpress.org/support/users/catonebros/)
 * (@catonebros)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12649525)
 * Yesterday I contacted my server hosting provider, I’m waiting for an answer.
 * If the process is too complicated I won’t do it but I’ll appreciate your help
   the same!
 * 1. CentOS 7
    2. PHP 7.2.26 3. Apache 2.4 4. No
 * Thank you
 *  [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12649546)
 * [@catonebros](https://wordpress.org/support/users/catonebros/)
 * Sorry, but you don’t have root access, so you can’t install it yourself. You’ll
   have to wait for your hosting provider to get it installed or configured for 
   your account.
 *  Thread Starter [catonebros](https://wordpress.org/support/users/catonebros/)
 * (@catonebros)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12649895)
 * I deleted the file and the website returns online!
 * I have a question.
    Previously I built a website on wordpress.com and I made 
   a backup using UpdraftPlus. Then I installed wordpress.org on a new host and 
   a new domain. On this new website I was making the restore (with UpdraftPlus –
   Migrator) of all backup packages created before but the error came out.
 * The question is:
    if I finish to restore the backup package “Database”, can I
   normally use the website? Or am I forced to restore the file /web/htdocs/www.
   coconinopress.it/home/wp-content/object-cache.php after having installed Memcache?
 * Thank you
 *  [Gagan Deep Singh](https://wordpress.org/support/users/gagan0123/)
 * (@gagan0123)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12649983)
 * [@catonebros](https://wordpress.org/support/users/catonebros/)
 * Glad to know that the site is up again 🙂
 * About Updraft backup, you should be able to restore database(just database, not
   files) without any issue. Even all files can be restored except that object-cache.
   php file.
 * Updraft backups are simply zip files(as far as I remember), so you should be 
   able to extract them on your system, and then restore what you want to, instead
   of doing the whole restore through plugin.
 * I hope the issue is resolved, in which case, we should mark it as resolved.
 * If you need assistance with anything else, you can create another support topic.
 *  Thread Starter [catonebros](https://wordpress.org/support/users/catonebros/)
 * (@catonebros)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12650977)
 * Good news:
    I’ve finished the database restore and the migration appears completed!
   Hurray!
 * The only one flaw is that Updraft seems to reject uploaded files that have been
   previously edited. Because I’ve downloaded “others” backup zip from the first
   site, deleted /web/htdocs/www.coconinopress.it/home/wp-content/object-cache.php
   file inside the zip and reuploaded it into the second site, but Updraft doesn’t
   recognize it.
 * By the way very, very, very thanks to you for helping, for the patience and for
   answering in no time. Thank you so much, Gagan!

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

The topic ‘Class “Memcache” Error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 2 participants
 * Last reply from: [catonebros](https://wordpress.org/support/users/catonebros/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/class-memcache-error/#post-12650977)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
