• Resolved jidwictut9

    (@jidwictut9)


    Hello,

    I get the following error message.

    The time is correct when the cache is regenerated.

    [14-Dec-2023 18:07:21 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wp_cache_get() in ***/wp-includes/option.php:599
    Stack trace:
    #0 ***/wp-includes/option.php(164): wp_load_alloptions()
    #1 ***/wp-includes/l10n.php(63): get_option('WPLANG')
    #2 ***/wp-includes/l10n.php(156): get_locale()
    #3 ***/wp-includes/l10n.php(1300): determine_locale()
    #4 ***/wp-includes/l10n.php(1331): _load_textdomain_just_in_time('wp-optimize')
    #5 ***/wp-includes/l10n.php(185): get_translations_for_domain('wp-optimize')
    #6 ***/wp-includes/l10n.php(297): translate('User is logged ...', 'wp-optimize')
    #7 ***/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php(37): __('User is logged ...', 'wp-optimize')
    #8 [internal function]: wpo_cache('<!DOCTYPE html>...', 9)
    #9 {main}
      thrown in ***/wp-includes/option.php on line 599
    

    With kind Regards

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Support pbevanudp

    (@pbevanudp)

    Hello,

    Thank you for reporting this. Please could you deactivate and uninstall WP-Optimize and then reinstall and reactivate it. The fatal error is thrown by the WordPress core and not WP-Optimize. If the issue persists you may need to update the WordPress core files.

    Thread Starter jidwictut9

    (@jidwictut9)

    Hello,

    thanks for the answer I will try it.
    I updated WordPress to the latest version 6.4.2 yesterday. That shouldn’t be the problem, right?

    Plugin Support pbevanudp

    (@pbevanudp)

    Hello,

    You’re welcome, it may indeed be due to an issue with the upgrade and so it may be necessary to overwrite the core files with new ones. Some of them may not have been updated correctly.

    Thread Starter jidwictut9

    (@jidwictut9)

    I deactivated the plugin and reinstalled it. Unfortunately, the error occurred again a few times.
    I have now reinstalled the WordPress core files and will now monitor it…….

    Plugin Support vupdraft

    (@vupdraft)

    Did you have more than one caching plugin installed on your site? (this is the normal cause of the issue)

    Thread Starter jidwictut9

    (@jidwictut9)

    I only use Autoptimize, but this combination has worked without any problems so far.

    Thread Starter jidwictut9

    (@jidwictut9)

    Also copying the WordPress core files did not help. The error occurred several times again.

    Plugin Support pbevanudp

    (@pbevanudp)

    Please could you check with your host to see if external object caching is used?

    Thread Starter jidwictut9

    (@jidwictut9)

    Hello, no external caching is active. Only browser caching via the .htaccess.

    Thread Starter jidwictut9

    (@jidwictut9)

    I am temporarily using a different cache plugin and no longer get any error messages. So it is definitely due to WPOptimze.
    Since I would like to continue using your plugin, it would be great if you could fix this error.

    Plugin Support vupdraft

    (@vupdraft)

    This appears to be quite a well documented error with Auto optimize.

    Have you tried disabling your minification for CSS?

    Is auto optimize the only other caching plugin you are currently using (you said you are using another temporarily). If so can you also deactivate his when you test WPO with the CSS minification?

    Thread Starter jidwictut9

    (@jidwictut9)

    Hello,
    I am currently using Autoptimize in combination with Cache Enabler. WPOtimize is deactivated because of the error.
    So far I have not tried to disable the compression of Autoptimize, because I am very happy with it. But I will test and observe it in the next few days.

    I have just carried out a few tests. With the compression of WPO, the values for mobile are much worse (image 1) than with Autoptimize/Cache Enabler (image 2).

    Image 1: https://snipboard.io/JQkzSB.jpg

    Image 2: https://snipboard.io/ge8Sly.jpg

    • This reply was modified 11 months ago by jidwictut9.
    Optimizing Matters

    (@optimizingmatters)

    This appears to be quite a well documented error with Auto optimize.

    Never seen AO cause wp_cache_get to fail before, but always interested in learning about that one @vupdraft ??

    frank (ao dev)

    Thread Starter jidwictut9

    (@jidwictut9)

    So far, the error has not occurred again. But the performance of the page is worse with WPO as with WPO/Autoptimize and Autoptimze/Cache Enabler. The combination WPO/Autoptimize has worked best so far.

    Plugin Support vupdraft

    (@vupdraft)

    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?

    Here are some articles regarding wp_cache_get in case they are helpful.

    https://coderevolution.ro/solution/fix-fatal-error-undefined-function-wp_cache_get/

    https://www.ads-software.com/support/topic/fatal-error-site-broke/

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.