PHP 8.x support




Wordpress LScache Plugin: PHP 8.x support


Using WP 6.0 and Litespeed cache plugin Version 4.6 and PHP 8.1.5 when I have the Litespeed cache plugin enabled I get this deprecated warnings of PHP. Would it be possible to add full support for PHP 8.x in the plugin. Maybe a REQUESTS_SILENCE_PSR0_DEPRECATIONS can be a quick fix? https://core.trac.wordpress.org/ticket/54504#comment:35 Return type of Requests_Cookie_Jar::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ ReturnTypeWillChange] attribute should be used to temporarily suppress the notice wp-includes/Requests/Utility/CaseInsensitiveDictionary.php:40 Return type of Requests_Utility_CaseInsensitiveDictionary::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ ReturnTypeWillChange] attribute should be used to temporarily suppress the notice wp-includes/formatting.php:2772 rtrim(): Passing null to parameter #1 ($string) of type string is deprecated thanks did you do/enable any specific options to trigger this ? No, the PHP warnings comes just by enabling the LiteSpeed Cache plugin, I use the plugin Query Monitor By John Blackbourn to track them. Thank you. Query Monitor is a pretty nice plugin. I noticed that issue as well after upgrade to WP v6. However, after upgraded all the other plugins, that issue is gone. Have you upgraded other plugins as well? Especially WooCommerce related ones? Yes everything is updated. Query Monitor is great but sometimes it incorrectly shows what plugin cause the warning, even if the warning it self is correct. But if disable the LiteSpeed Cache plugin I dont get the warnings therefor I think its correct its from LiteSpeed Cache plugin (I dont use Woo) Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ ReturnTypeWillChange] attribute should be used to temporarily suppress the notice Example: wp-includes/Requests/Utility/CaseInsensitiveDictionary.php:91 Requests::autoloader() wp-includes/Requests/Response/Headers.php:13 Requests::autoloader() wp-includes/Requests/Response.php:20 Requests_Response->__construct() wp-includes/class-requests.php:631 Requests::parse_response() wp-includes/class-requests.php:385 Requests::request() wp-includes/class-wp-http.php:394 WP_Http->request() wp-includes/class-wp-http.php:632 WP_Http->get() wp-includes/http.php:162 wp_remote_get() wp-content/plugins/litespeed-cache/src/cloud.cls.php:508 LiteSpeed Cloud->_get() wp-content/plugins/litespeed-cache/src/cloud.cls.php:465 LiteSpeed Cloud::get() wp-content/plugins/litespeed-cache/src/cloud.cls.php:154 LiteSpeed Cloud::version_check() wp-content/plugins/litespeed-cache/src/conf.cls.php:142 LiteSpeed Conf->_conf_db_init() wp-content/plugins/litespeed-cache/src/conf.cls.php:33 LiteSpeed Conf->init() wp-content/plugins/litespeed-cache/src/core.cls.php:44 LiteSpeed Core->__construct() wp-content/plugins/litespeed-cache/src/root.cls.php:197 LiteSpeed Root::cls() wp-content/plugins/litespeed-cache/litespeed-cache.php:178 run_litespeed_cache() wp-content/plugins/litespeed-cache/litespeed-cache.php:181Expand
Do you need help?
We are online almost any time and ready to answer any question. The answer to your question will come faster than it takes you to release the mouse button.

Ask A Question