Title: Fatal PHP errors in my ERROR.LOG
Last modified: December 31, 2020

---

# Fatal PHP errors in my ERROR.LOG

 *  Resolved [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/fatal-php-errors-in-my-error-log/)
 * From time to time I analyze ERROR.LOG and DEBUG.LOG, in debug nothing is shown,
   only in error.log
 * This is the error:
 *     ```
       PHP Fatal error:  Uncaught Error: Call to undefined function wp_cache_get() in /*/wp-includes/option.php:97
       Stack trace:
       #0 /*/wp-includes/l10n.php(69): get_option('WPLANG')
       #1 /*/wp-includes/l10n.php(137): get_locale()
       #2 /*/wp-includes/l10n.php(1277): determine_locale()
       #3 /*/wp-includes/l10n.php(1239): _get_path_to_translation_from_lang_dir('wp-optimize')
       #4 /*/wp-includes/l10n.php(1209): _get_path_to_translation('wp-optimize')
       #5 /*/wp-includes/l10n.php(1307): _load_textdomain_just_in_time('wp-optimize')
       #6 /*/wp-includes/l10n.php(177): get_translations_for_domain('wp-optimize')
       #7 /*/wp-includes/l10n.php(289): translate('User is logged ...', 'wp-optimize')
       #8 /*/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php(33): __('User is logged ...', 'wp-optimize')
       #9 [inte in /*/wp-includes/option.php on line 97
       ```
   
 * I hope you can help me

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-php-errors-in-my-error-log/#post-13853337)
 * [@makobaby01](https://wordpress.org/support/users/makobaby01/) Do you have any
   other cache plugin installed? If yes, can you please disable it and check if 
   you are still seeing the errors in error log file?
 *  Thread Starter [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-php-errors-in-my-error-log/#post-13861925)
 * I don’t have it, I only use your plugin, but I have cache settings in my .htacess,
   do you think this can change anything?
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-php-errors-in-my-error-log/#post-13870109)
 * [@makobaby01](https://wordpress.org/support/users/makobaby01/) Can you please
   share the .htaccess rules here, so that we can check it?
 *  Thread Starter [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * (@makobaby01)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-php-errors-in-my-error-log/#post-13872684)
 * In my .htacess in relation to the cacher, only those lines, outside the WEBP 
   express.
 *     ```
       <IfModule mod_expires.c>
   
       	ExpiresActive on
       	ExpiresDefault                                      "access plus 1 month"
   
       # CSS
   
       	ExpiresByType text/css                              "access plus 1 year"
   
       # Data interchange
   
       	ExpiresByType application/atom+xml                  "access plus 1 hour"
       	ExpiresByType application/rdf+xml                   "access plus 1 hour"
       	ExpiresByType application/rss+xml                   "access plus 1 hour"
   
       	ExpiresByType application/json                      "access plus 0 seconds"
       	ExpiresByType application/ld+json                   "access plus 0 seconds"
       	ExpiresByType application/schema+json               "access plus 0 seconds"
       	ExpiresByType application/geo+json                  "access plus 0 seconds"
       	ExpiresByType application/xml                       "access plus 0 seconds"
       	ExpiresByType text/calendar                         "access plus 0 seconds"
       	ExpiresByType text/xml                              "access plus 0 seconds"
   
       # Favicon (cannot be renamed!) and cursor images
   
       	ExpiresByType image/vnd.microsoft.icon              "access plus 1 week"
       	ExpiresByType image/x-icon                          "access plus 1 week"
   
       # HTML
   
       	ExpiresByType text/html                             "access plus 0 seconds"
   
       # JavaScript
   
       	ExpiresByType application/javascript                "access plus 1 year"
       	ExpiresByType application/x-javascript              "access plus 1 year"
       	ExpiresByType text/javascript                       "access plus 1 year"
   
       # Manifest files
   
       	ExpiresByType application/manifest+json             "access plus 1 week"
       	ExpiresByType application/x-web-app-manifest+json   "access plus 0 seconds"
       	ExpiresByType text/cache-manifest                   "access plus 0 seconds"
   
       # Markdown
   
       	ExpiresByType text/markdown                         "access plus 0 seconds"
   
       # Media files
   
       	ExpiresByType audio/ogg                             "access plus 1 month"
       	ExpiresByType image/apng                            "access plus 1 month"
       	ExpiresByType image/bmp                             "access plus 1 month"
       	ExpiresByType image/gif                             "access plus 1 month"
       	ExpiresByType image/jpeg                            "access plus 1 month"
       	ExpiresByType image/png                             "access plus 1 month"
       	ExpiresByType image/svg+xml                         "access plus 1 month"
       	ExpiresByType image/webp                            "access plus 1 month"
       	ExpiresByType video/mp4                             "access plus 1 month"
       	ExpiresByType video/ogg                             "access plus 1 month"
       	ExpiresByType video/webm                            "access plus 1 month"
   
       # WebAssembly
   
       	ExpiresByType application/wasm                      "access plus 1 year"
   
       # Web fonts
   
       # Collection
       	ExpiresByType font/collection                       "access plus 1 month"
   
       # Embedded OpenType (EOT)
       	ExpiresByType application/vnd.ms-fontobject         "access plus 1 month"
       	ExpiresByType font/eot                              "access plus 1 month"
   
       # OpenType
       	ExpiresByType font/opentype                         "access plus 1 month"
       	ExpiresByType font/otf                              "access plus 1 month"
   
       # TrueType
       	ExpiresByType application/x-font-ttf                "access plus 1 month"
       	ExpiresByType font/ttf                              "access plus 1 month"
   
       # Web Open Font Format (WOFF) 1.0
       	ExpiresByType application/font-woff                 "access plus 1 month"
       	ExpiresByType application/x-font-woff               "access plus 1 month"
       	ExpiresByType font/woff                             "access plus 1 month"
   
       #
       	ExpiresByType application/font-woff2                "access plus 1 month"
       	ExpiresByType font/woff2                            "access plus 1 month"
   
       # Other
   
       	ExpiresByType text/x-cross-domain-policy            "access plus 1 week"
   
       </IfModule>
       ```
   

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

The topic ‘Fatal PHP errors in my ERROR.LOG’ 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

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

 * 4 replies
 * 2 participants
 * Last reply from: [makobaby01](https://wordpress.org/support/users/makobaby01/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-php-errors-in-my-error-log/#post-13872684)
 * Status: resolved