Title: fatal error, called to undefined function, wp_cache
Last modified: August 19, 2016

---

# fatal error, called to undefined function, wp_cache

 *  [bella317](https://wordpress.org/support/users/bella317/)
 * (@bella317)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-called-to-undefined-function-wp_cache/)
 * My blog has been running for almost a year with no problems, then all of a sudden
   I get an error message, but I have not changed anything or even posted recently.
 * Original error
    Fatal error call to undefined function wp_cache_init(); on line
   133 in wp-settings.php
 * I do some reading and research and find the advice to add the line
 * (‘ENABLE_CACHE’, true);
 * Above the line wp_cache_init(); in the wp_settings.php file
 * I do this and now I get this error:
    Parse error: syntax error, unexpected ‘,’
   in /home/merrfit8/public_html/wp-settings.php on line 131
 * I remove the comma from before the word true);
 * I now get the error:
 * Parse error: syntax error, unexpected T_STRING in /home/merrfit8/public_html/
   wp-settings.php on line 131
 * (Which from all I have read indicates a missing apostrophe or semi-colon. )
 * Upon further reading, I now edited this line in wp-settings.php to read
 * Define (‘ENABLE_CACHE’, true);
 * I added a directory called cache under wp-content and gave the permissions 777
 * The error message comes back to;
 * Fatal error: Call to undefined function wp_cache_init() in /home/merrfit8/public_html/
   wp-settings.php on line 131
 * Can anybody give me any assistance? My webhost said I need to re-install wordpress.
   
   Thanks so much.

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-called-to-undefined-function-wp_cache/#post-665237)
 * 1) Stop editing files.
    2) Undo any and all changes you made to that file. Remove
   the cache directory you made, you don’t need it. 3) Get a fresh, clean copy of
   WordPress and make sure that you’re not missing any files from your installation.
   Specifically, check to make sure all files in wp-includes are there.
 * You can get fresh copies of WordPress from here: [http://wordpress.org/download/release-archive/](http://wordpress.org/download/release-archive/)
 *  Thread Starter [bella317](https://wordpress.org/support/users/bella317/)
 * (@bella317)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-called-to-undefined-function-wp_cache/#post-665250)
 * Wow, Thank you SO MUCH. I have been working on this for days before asking for
   help. do you have any idea what may have caused this problem? I am so grateful
   to you!

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

The topic ‘fatal error, called to undefined function, wp_cache’ is closed to new
replies.

## Tags

 * [syntax errors](https://wordpress.org/support/topic-tag/syntax-errors/)
 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bella317](https://wordpress.org/support/users/bella317/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-called-to-undefined-function-wp_cache/#post-665250)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
