Support » Plugin: W3 Total Cache » PHP 7.1 and PHP 7.2

  • Ronanlan

    (@ronanlan)


    Hi,

    When will W3 total cache be updated for PHP 7.1 and PHP 7.2?

    Thanks for the great plugin.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor gidomanders

    (@gidomanders)

    Hi @ronanlan, we’re working on that. It’s actually working already, but we’re fixing some warnings that spam the error logs.

    @gidomanders any update on a release on the update for PHP 7.1/7.2?

    Is there any update on this.

    I updated a few sites to 7.1 this morning and started getting 500 errors after some digging in logs I found this was caused by W3 Total Cache and had to downgrade back to PHP 7.0 as I can’t afford not to have caching on these sites.

    Plugin Contributor gidomanders

    (@gidomanders)

    Could you share the errors you got when using PHP7.1? We are aware of warnings but haven’t found errors yet.

    W3TC work perfect with PHP 7.1, but not PHP 7.2 Get errors on logs. I try 7.2 some minutes ago and roll back to 7.1.

    Plugin Contributor gidomanders

    (@gidomanders)

    @malferov could you share those errors please? We fixed the issue that’s causing PHP warnings in the logs (upcoming release, v0.9.7.1), but we’re not aware of any PHP errors. Sharing those errors can help us fix incompatibilities in the upcoming release too.

    Plugin Contributor gidomanders

    (@gidomanders)

    @malferov Those errors have nothing to do with PHP 7.2 incompatibility. You forgot to install the json PHP extension:

    https://stackoverflow.com/questions/18239405/php-fatal-error-call-to-undefined-function-json-decode

    Not forget. And specifically wrote that I checked that the extension was included.

    Look at cursor: https://ibb.co/gPbnkU

    Plugin Contributor gidomanders

    (@gidomanders)

    @malferov Sorry I read over that. W3 Total Cache doesn’t work without json_encode and json_decode, and errors like that only show up when those functions are not defined, which means either the json extension is not installed/enabled or it doesn’t work.

    Could you check the output of phpinfo(); for something similar to this:
    https://ibb.co/cyafPp

    You can just add an info.php file to the root of your website and open yourwebsite/info.php in the browser. Remove the file afterwards.

    Hi,

    Is W3 Total Cache compatible with PHP 7.2 and the latest version of wordpress and woo-commerce ?

    @gidomanders Could be a legit autoloader type issue, where in PHP is trying to load a json_encode override for the current namespace, as opposed to trying the root namespace for a built-in function. I’ve started to use Fully-Qualified roots on functions (ie. \json_encode) or (use function json_encode) to get around this.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP 7.1 and PHP 7.2’ is closed to new replies.