• Hello:
    Using PHP 7.2, WP 5.23. Error after update to latest version:

    Uncaught Error: Call to undefined method W3TC\Util_Content::is_database_error() in /w3-total-cache/Generic_Plugin.php:512

    I fixed by downgrading: wp plugin update w3-total-cache --version=0.9.7.5

    Best wishes,
    Mitchell

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hello,
    I have the same problem. Hope support fix this issue asap!!

    Regards,
    Barbara

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @brainiac, @barbarachaviano,

    I am sorry for the issues you are having and I am happy to assist you with this.

    That line you are referring to doesn’t contain a call to is_database_error.
    It seems your plugin update process failed to update files (Try updating manually in that case), or webserver still executes old file contents (This should be temporary, or webserver/PHP-fpm restart will help).
    I hope this helps.

    Hello,
    I updated W3TC manually, as your indications and unfortunatly I still get an error:
    Fatal error: Uncaught Error: Class ‘W3TC\Util_Content’ not found in /home/itfami/public_html/wp-content/plugins/w3-total-cache/Generic_Plugin.php:525

    Below the 525 line on my file –/plugins/w3-total-cache/Generic_Plugin.php
    if ( Util_Content::can_print_comment( $buffer ) ) {

    Hope this can be help you to find the bug.
    Best Regards,
    Barbara

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @barbarachaviano,

    Have you tried webserver/PHP-fpm restart?

    Hello

    I restart Apache but the problem remains. My php setting are different and does not requires fpm. My settings include Memcached. Can it be related whtis this issue in some way?

    Regards,

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @barbarachaviano,

    Util_Content is there in distribution. You should be able to see
    –/plugins/w3-total-cache/Util_Content.php file if the plugin is installed correctly.
    Check .zip from wp.org here – its there.
    I hope this helps

    Hello @vmarko
    the plugin is installed correctly, no file is missing. I have 3 others web sites with the same theme and plugins.
    The only difference is Memcached. That’s why I thought it was related to the error.

    any other idea?

    Regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @barbarachaviano,

    Does the issue occur on two other websites on which you are not using Memcached?

    Hello @vmarko
    Sorry, I did explain it wrong. The issue is present only in the website with the Memcached settings. The other websites works correctly.

    when i try install any plugin issues are showing like..

    The site is experiencing technical difficulties. Please check your site admin email inbox for instructions

    after try to activate W3 total cache .this above error is showing

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pappupavi,

    I answered this question in the other thread. Please do not make duplicate posts.

    @barbarachaviano Can you please try to purge and restart Memcached? If the issue still persists try to completely remove and re-install W3 Total Cache:
    1. Purge Cache
    2. Deactivate and Delete Plugin
    3. Check .htaccess File (make backup)
    W3TC will create many directives in the .htaccess file to control the caching behavior. Each section will start and end with comments like “#BEGIN W3TC Page Cache core” and “#END W3TC Page Cache core”.
    Ensure that no residual entries are leftover in your .htaccess file after deleting the plugin.
    4. Delete wp-content files and folders
    – cache folder
    – w3tc-config folder
    – object-cache.php File (if exists)
    – advanced-cache.php (if exists)
    – dbcache.php (if exists)
    – upgrade folder
    – W3-total-cache folder in your /plugins/ folder (if exists)
    5. Delete Cached Files from CDN (if using CDN)
    Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.
    6. Re-install W3 Total Cache

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @barbarachaviano,

    We’ve just released new version 0.10.1 with some fixes including the fix for Util_Content::is_database_error()
    Please update the plugin and see if the issue persist.

    Hello @vmarko
    Thank you!!! The problem is fixed ??

    Have a nice day,
    Barbara

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Call to undefined method W3TC\Util_Content::is_database_error()’ is closed to new replies.