Fatal error when combining with full-page cache
-
Since version 1.4.2 (at least that I am aware of), the method
build_client_parametersincluded in theobject-cache.phphas 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.phpbefore the filewp-includes/formatting.phpis included (which is in charge of definingwp_strip_all_tags). Ifadvanced-cache.phpuses object caching it must includeobject-cache.phpbut when executing the mentioned method a fatal error is raised. And ifformatting.phpis 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_tagsmaybe.
The topic ‘Fatal error when combining with full-page cache’ is closed to new replies.