Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter martinsdzerve

    (@martinsdzerve)

    Hello.

    Regarding to this one: “W3 Total Cache adds the rules to the nginx.conf depending on the configuration, and for example, if the gizp is enabled, the W3TC adds the rules to the nginx.conf.”

    I don’t think plugin is able to change any system related files, including nginx.conf. Otherwise it would be a security-breach or mis-configured system. And this is why I asked – Does this message “by default” appear when the plugin is first installed, or does it only appear when the plugin really makes nginx.conf changes?

    In my opinion it is just “by default”.
    I think this message is useless, because it is misleading info, but maybe I am wrong ??

    @moodybuttar – the best way to solve this issue is to upgrade the plugin, because the fix is already implemented.

    @apsixions

    This method completely deactivating this plugin.
    To use it again, you should reinstall it.

    Hello!

    We had forgotten to turn off automatic WP core upgrade, and when it automatically upgraded WP to version 6.3, the same error occurred when logging in to the administrator and WP tried to upgrade DB:

    thrown in /var/www/mysite.com/wp-content/plugins/w3-total-cache/Util_Environment.php on line 176" while reading response header from upstream, client: 111.111.111.111, server: mysite.com, request: "POST /wp-admin/upgrade.php?step=upgrade_db HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.mysite.sock:", host: "mysite.com"
    2023/08/09 03:15:47 [error] 2845037#2845037: *171636 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function W3TC\Util_Environment::is_dbcluster(), 0 passed in /var/www/mysite.com/wp-content/db.php on line 56 and exactly 1 expected in /var/www/mysite.com/wp-content/plugins/w3-total-cache/Util_Environment.php:176
    Stack trace: 0 /var/www/mysite.com/wp-content/db.php(56): W3TC\Util_Environment::is_dbcluster() 1 /var/www/mysite.com/wp-includes/load.php(666): require_once('/var/www/mysite…') 2 /var/www/mysite.com/wp-settings.php(124): require_wp_db() 3 /var/www/mysite.com/wp-config.php(101): require_once('/var/www/mysite…') 4 /var/www/mysite.com/wp-load.php(50): require_once('/var/www/mysite…') 5 /var/www/mysite.com/wp-admin/upgrade.php(18): require('/var/www/mysite…') 6 {main}

    And of course, the quick fix was to log into the server, check what’s causing the error and to rename/remove w3-total-cache plugin folder and wp-content/db.php , wp-content/advanced-cache-2.php, wp-content/object-cache-2.php .

    Thread Starter martinsdzerve

    (@martinsdzerve)

    Oh.

    Thank you for the answer.

    That is interesting …

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