Fatal error when combining with full-page cache
-
Since version 1.4.2 (at least that I am aware of), the method
build_client_parameters
included in theobject-cache.php
has been modified to escape the server configuration variables using the functionwp_strip_all_tags
.If this plugin is used in conjunction with the WordPress full-page cache functionality it throws a fatal error. The reason is that in order to activate that functionality WordPress includes the file
advanced-cache.php
before the filewp-includes/formatting.php
is included (which is in charge of definingwp_strip_all_tags
). Ifadvanced-cache.php
uses object caching it must includeobject-cache.php
but when executing the mentioned method a fatal error is raised. And ifformatting.php
is included or the missing function is defined somehow before it is called, a fatal error will be raised later because of a duplicate definition.I would like to know if this is something you plan to fix in an upcoming version because, if you do not, I would need to replace the plugin. I think that probably what you want to achieve with that change can be easily achieved with a built-in PHP function, as
strip_tags
maybe.
- The topic ‘Fatal error when combining with full-page cache’ is closed to new replies.