Title: Fatal errors during preload
Last modified: October 19, 2022

---

# Fatal errors during preload

 *  Resolved [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/)
 * Hi,
    I ran preload this morning and came across the follow errors in the php 
   error log. Please advise how to avoid these occurrence or need to be fixed. Thanks.
 *     ```
       20221019T132256: mysite.com/index.php 
       PHP Fatal error:  Uncaught Error: Call to undefined function wp_cache_get() in /serverpath/public_html/test/wp-includes/option.php:147 
       Stack trace: 
       #0 /serverpath/public_html/test/wp-includes/l10n.php(63): get_option('WPLANG') 
       #1 /serverpath/public_html/test/wp-includes/l10n.php(137): get_locale() 
       #2 /serverpath/public_html/test/wp-includes/l10n.php(1285 
       20221019T132300: mysite.com/index.php 
       PHP Fatal error:  Uncaught Error: Call to undefined function wp_cache_get() in /serverpath/public_html/test/wp-includes/option.php:147 
       Stack trace: 
       #0 /serverpath/public_html/test/wp-includes/l10n.php(63): get_option('WPLANG') 
       #1 /serverpath/public_html/test/wp-includes/l10n.php(137): get_locale() 
       #2 /serverpath/public_html/test/wp-includes/l10n.php(1285
       ```
   

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16116671)
 * [@francoc30](https://wordpress.org/support/users/francoc30/) Do you have any 
   other caching plugin installed or caching mechanism enabled on the server, if
   so could you please disable the other caching mechanism and check if it helps
   to fix the issue?
 *  Plugin Contributor [Venkat Raj](https://wordpress.org/support/users/webulous/)
 * (@webulous)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16116800)
 * [@francoc30](https://wordpress.org/support/users/francoc30/) It seems your WordPress
   update is somehow broke things. The files involved in this Fatal Error are from
   WordPress core.
 * You may want to FTP `wp-includes` and `wp-admin` folders and overwrite existing
   one.
 * Are you on PHP 8.1?
 *  Thread Starter [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16119624)
 * Hi Harshad,
    My Cache Control tool on cPanel was disabled long time ago and I
   have no other cache plugins running along WPO.
 * Hi Venkat,
    I did have WP 6.0.3 updated recently. It appears to me the update
   cause my site to slow drastically. But not sure if they are related. Is there
   a way to rollback WP?
 * What did you mean
    ” You may want to FTP wp-includes and wp-admin folders and
   overwrite existing one.” Where do I get the wp-includes and wp-admin folders 
   to overwrite the existing one?
 * My current php version is 7.4.10
 *  Plugin Contributor [Venkat Raj](https://wordpress.org/support/users/webulous/)
 * (@webulous)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16120532)
 * [@francoc30](https://wordpress.org/support/users/francoc30/) My guess is that
   the WP update is somehow broken, i.e. some files misisng.
 * So download a fresh copy of WP [https://wordpress.org/latest.zip](https://wordpress.org/latest.zip)
 * Unzip it, it will contain `wp-admin`, `wp-includes` and `wp-content` folders.
   Copy everything except `wp-content` folder and `wp-config.php` file from your
   computer to your server using FTP client such as FileZilla.
 *  Thread Starter [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16122893)
 * Hi [@webulous](https://wordpress.org/support/users/webulous/),
    I have downloaded
   the latest WP. Just want to be sure I understand what you suggested: 1) replace
   all files (not under any subfolders) in the wp-admin folder AND all files in 
   the subfolders of wp-admin. 2) replace all files (not under any subfolders) in
   the wp-include folder AND all files in the subfolders of wp-include. 3) leave
   wp-content folder and its files as is (not to replace). 4a) leave all files under
   parent folder WordPress as is, OR 4b) replace all files under parent folder WordPress
   except for wp-config.php
 * I am not clear on #4, whether it should be 4a or 4b.
    These file replacement 
   process would not adversely affect my website setup, correct?
 *  Plugin Contributor [Venkat Raj](https://wordpress.org/support/users/webulous/)
 * (@webulous)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16123761)
 * Hi [@francoc30](https://wordpress.org/support/users/francoc30/)
 * The error happens from files with `wp-includes` folder. So, replacing that (#
   2) is suffice. Just to be sure, follow all steps you have listed and for #4 it
   is 4b
 * > These file replacement process would not adversely affect my website setup,
   correct?
    Yes, the site related files are in `wp-content` folder and in `wp-config.
   php` file.
 * But always take a full backup before proceeding with UpdraftPlus
    [https://wordpress.org/plugins/updraftplus/](https://wordpress.org/plugins/updraftplus/)
 *  Thread Starter [francoc30](https://wordpress.org/support/users/francoc30/)
 * (@francoc30)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16125404)
 * [@webulous](https://wordpress.org/support/users/webulous/), thanks for the clarification.
   I’ll get it a try when I have time.

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

The topic ‘Fatal errors during preload’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [francoc30](https://wordpress.org/support/users/francoc30/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-errors-during-preload/#post-16125404)
 * Status: resolved