szepeviktor/w3-total-cache-fixed

Activation of plugin fails

Opened this issue · 3 comments

The most interesting thing happened: after removing wp-content/w3tc-config/master.php the plugin is instantly activated, without any extra step, but i assume the setting are then gone

The activation seem to fail, on the first try, the plugin looks activated, until the 3 drop-in plugins are copied over, but, after that trying to visin any of the polugins pages result in an asscess denied error, also the plugin is listed again as not active.

tests trying to produce any usable debug, or to get any php error, or php fatal seem not to work, as you can see below from the debug.log

  • Webserver name and version
    Apache 2.2.22-13+deb7u11

  • PHP version and handler type (e.g. mod_php, suPHP, PHP-FPM)
    PHP 5.6.31-1~dotdeb+7.1 as mod_php

  • Database server name and version
    MySQL 5.6.34-1~dotdeb+7.2

  • WordPress core version
    WordPress Version 4.8.2

  • Plugins:
    Broken Link Checker - Version 1.11.5 Active
    Category Order and Taxonomy Terms Order - Version 1.5.2.2 Active
    Contact Form 7 - Version 4.9 Active
    Contact Form DB - Version 2.10.29 Active
    Easy Watermark - Version 0.6.0 Active
    EWWW Image Optimizer - Version 3.6.1 Active
    Google XML Sitemaps - Version 4.0.9 Active
    Loco Translate - Version 2.0.15 Active
    Polylang - Version 2.2.3 Active
    Post Types Order - Version 1.9.3.5 Active
    Really Simple CAPTCHA - Version 2.0.1 Active
    Redirection - Version 2.7.3 Active
    W3 Total Cache (Fixed) - Version 0.9.5.4.3 Inactive
    Wordfence Security - Version 6.3.19 Active

  • Theme in use:
    Spalon Version 2.8 (which has some deprecated things)

  • Debug.log content
    Placed into a gist: debug.log

Have tried a diff of a default master.php and my, changed the true/flase notations:
: "0" to false
: "1" to true

copied my settings back, they semm to work for 1-2 steps, but wanted to be sure, done a deactivate and then an activate , and the plugin again not active

the settings cause the issue but how and why?

Workaround that seems to overcome the above:

  • before deactivating the original plugin, do a settings download in General Settings as JSON
  • deactivate and delete the old plugin
  • create a backup of wp-content/w3tc-config/master.php
  • remove wp-content/w3tc-config/master.php
  • install, and activate the new plugin
  • save a default setting
  • import your settings from the JSON file downloaded

I done a diff of the master.php i had before, and the settings that got generated after import of the JSON backup, and its available here: gist of the diff