• Resolved erikdemarco

    (@erikdemarco)


    It cant activate after clean install. And here is the debug.log

    [28-Jul-2021 14:25:54 UTC] PHP Fatal error:  Uncaught Error: Class 'W3TC\ConfigCompiler' not found in /wp-content/plugins/w3-total-cache/Config.php:484
    Stack trace:
    #0 /wp-content/plugins/w3-total-cache/Config.php(459): W3TC\Config->load_full()
    #1 /wp-content/plugins/w3-total-cache/Config.php(127): W3TC\Config->load()
    #2 /wp-content/plugins/w3-total-cache/Dispatcher.php(16): W3TC\Config->__construct()
    #3 /wp-content/plugins/w3-total-cache/Dispatcher.php(26): W3TC\Dispatcher::component('Config')
    #4 /wp-content/plugins/w3-total-cache/Root_Loader.php(19): W3TC\Dispatcher::config()
    #5 /wp-content/plugins/w3-total-cache/Root_Loader.php(171): W3TC\Root_Loader->__const in /wp-content/plugins/w3-total-cache/Config.php on line 484
    [28-Jul-2021 14:25:54 UTC] PHP Warning:  Error while sending QUERY packet. PID=26458 in /wp-includes/wp-db.php on line 2056
    [28-Jul-2021 14:29:30 UTC] Connection timed out
    [28-Jul-2021 14:30:30 UTC] Connection timed out
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikdemarco

    I am sorry about the issue you are experiencing with the activation of W3 Total Cache and I am happy to help!
    It appears that you have some leftover config files from the previous/older version installation. Can you please confirm this?
    Can you please share which hosting you are using?
    I’ve tried to replicate the issue but failed to do so. Also, are you installing the W3TC directly via the dashboard or by uploading the zip file?
    Thanks!

    Thread Starter erikdemarco

    (@erikdemarco)

    @vmarko

    I try it again multiple times to make sure. Here’s what i do:
    -) delete all plugins
    -) Use twenty twteny one theme
    -) click re-install wordpress 5.8 from dashboard>updates
    -) clean debug.log
    -) clean all wp_options keys which starts with ‘w3’
    -) There is no files left in https://www.ads-software.com/support/topic/after-installing-update-of-w3-total-cache-cant-activate-or-deactivate-plugins/

    It still cant activate after click ‘activate’.

    This what happened:
    -) timeout after 100seconds
    – upgrade folder created
    – my debug .log only show only this line:
    [28-Jul-2021 14:40:41 UTC] Connection timed out

    I have no problem installing other cache plugins

    Is there any way to migrate/restore all my sites settings to you? So you can check it.
    Like using ‘All-in-One WP Migration’?`

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikdemarco

    Thank you for yoru suggestion however, this is not advisable.
    Can you please share some more information about the hosting environment?
    Please understand that this is the first time that this kind of issue is reported and most likely is environment-related.
    Does this happen on all websites or a single website?
    Thanks!

    Thread Starter erikdemarco

    (@erikdemarco)

    @vmarko

    Edit:
    After hours of debugging. I found the problem. Its my mistake. I used to set ‘W3TC_CONFIG_CACHE_ENGINE’ and ‘W3TC_CONFIG_CACHE_REDIS_SERVERS’ on wp-config.php but forget to delete it after uninstalling W3tc. Now when I want to install again I cant activate it because its old server configuration. Thats why it show ‘connection timeout’

    Maybe you should give timeout and show the configuration which causes the timeout. So other people will not going thru my mistake.

    Thank you so much

    Thread Starter erikdemarco

    (@erikdemarco)

    Update:
    Its your plugin which doesnt clean wp-config.php after uninstall. I dont know how your plugin miss this. I try it multiple time install and uninstall. SOmetimes your plugin miss cleaning the wp-config.php

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @erikdemarco

    Thank you for the information and I am glad to know you found the source of the issue.
    The only thing that W3TC is adding to wp-config.php is:

    /** Enable W3 Total Cache */
    define('WP_CACHE', true); // Added by W3 Total Cache

    define(‘WP_CACHE’, true); is needed for the caching to take place.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cant activate…’ is closed to new replies.