ML Slider throws warnings on read-only app container
-
The issue can be found here: N/A but can create a new test environment for you to see the warnings upon request
The preview works: N/A
It works with other themes: No
It works when I disable all other plugins: No
Meta Slider version: 3.18.9When running Meta Slider on a read-only app container, HTMLPurifier throws a ton of warnings upon instantiation.
At line 506 of https://plugins.trac.www.ads-software.com/browser/ml-slider/trunk/inc/slide/metaslide.image.class.php#L506
You instantiate the HTMLPurifier class. Upon instantiation, HTML Purifier will attempt to create a series of cache directories. In a read-only file system, this will fail and cause a cascade of warnings.HTMLPurifier does support a Cache.SerializerPath config option https://htmlpurifier.org/live/configdoc/plain.html#Cache.SerializerPath but ML Slider does not support the ability to pass in config options to the class.
The only solution I can discern from your code is to add
add_filter('metaslider_filter_unsafe_html','__return_false');
to either our themes’ functions.php files or create a plugin with just that line of code and install on all sites. Doing so also removes _any_ filtering on the caption instead of just preventing the usage of HTMLPurifier.Any chance you can add an option for either passing in a cache location, or skipping the use of HTMLPurifier and instead use
sanitize_text_field()
?
- The topic ‘ML Slider throws warnings on read-only app container’ is closed to new replies.