WordPress.org

Ready to get started?Download WordPress

Forums

fatal error, called to undefined function, wp_cache (3 posts)

  1. bella317
    Member
    Posted 6 years ago #

    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.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    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/

  3. bella317
    Member
    Posted 6 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic