Title: Fatal PHP error
Last modified: February 5, 2021

---

# Fatal PHP error

 *  Resolved [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-21/)
 * I have suffered this fatal error in my error.log, I wanted to understand why 
   and how to resolve
 *     ```
       PHP Fatal error:  Uncaught Error: Call to undefined function wp_cache_get() in my website/wp-includes/option.php:97
       Stack trace:
       #0 my website/wp-includes/l10n.php(69): get_option('WPLANG')
       #1 my website/wp-includes/l10n.php(137): get_locale()
       #2 my website/wp-includes/l10n.php(1277): determine_locale()
       #3 my website/wp-includes/l10n.php(1239): _get_path_to_translation_from_lang_dir('wp-optimize')
       #4 my website/wp-includes/l10n.php(1209): _get_path_to_translation('wp-optimize')
       #5 my website/wp-includes/l10n.php(1307): _load_textdomain_just_in_time('wp-optimize')
       #6 my website/wp-includes/l10n.php(177): get_translations_for_domain('wp-optimize')
       #7 my website/wp-includes/l10n.php(289): translate('User is logged ...', 'wp-optimize')
       #8 my website/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php(33): __('User is logged ...', 'wp-optimize')
       #9 [inte in my website/wp-includes/option.php on line 97
       ```
   

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14025256)
 * [@makobaby01](https://wordpress.org/support/users/makobaby01/)
 * Sorry to hear about your issues, Do you have any other cache plugin installed?
   If yes, Can you please try to disable other plugin and check if it helps to fix
   the issue?
 * Thanks,
    Harshad
 *  Thread Starter [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14030327)
 * Hello, I don’t have it, I only use your plugin together with updraft (sorry if
   I wrote it wrong).
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14060774)
 * [@makobaby01](https://wordpress.org/support/users/makobaby01/) Sorry for the 
   delay!
 * Can you please try to de-activate the plugin and activate it again and check 
   if it helps to fix the issue?
 * Thanks,
    Harshad
 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14062574)
 * Hi [@makobaby01](https://wordpress.org/support/users/makobaby01/)
 * According to my research, this error can only happen if your website uses a custom
   object cache file. Do you have a plugin that adds Object cache, or is there a
   file called `object-cache.php` in your website’s `wp-content` folder?
 * Marc
 *  Thread Starter [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14068354)
 * [@bornforphp](https://wordpress.org/support/users/bornforphp/)
    I have already
   deactivated and activated a few times for other debugging, and when active returns
   these errors to me, but I don’t know when or what I do to occur.
 * [@marcusig](https://wordpress.org/support/users/marcusig/)
    About `object-cache.
   php`, there is none of that in the `wp-content` folder
 *  [freejmp7](https://wordpress.org/support/users/freejmp7/)
 * (@freejmp7)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14078743)
 * Looks like an incomplete/broken update. You will need to download the WP archive
   for your version: [https://wordpress.org/download/releases/](https://wordpress.org/download/releases/)
 * Upload and overwrite folders
    /wp-admin/ /wp-includes/ and .php files in the 
   site root (make sure to keep wp-config.php, it is not included in archive)

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

The topic ‘Fatal PHP error’ 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/)

## Tags

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

 * 6 replies
 * 4 participants
 * Last reply from: [freejmp7](https://wordpress.org/support/users/freejmp7/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/fatal-php-error-21/#post-14078743)
 * Status: resolved