Title: PHP Deprecated &#8211; php8.1 &#8211; OpenLiteSpeed &#8211; Litespeed Plugin
Last modified: October 10, 2023

---

# PHP Deprecated – php8.1 – OpenLiteSpeed – Litespeed Plugin

 *  Resolved [richgiangnx](https://wordpress.org/support/users/richgiangnx/)
 * (@richgiangnx)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-php8-1-openlitespeed-litespeed-plugin/)
 * Hello,
   I am using Openlitespeed server with php8.1 version and installed litespeed
   plugin. I checked litespeed’s debug log and discovered this message. Can you 
   please tell me what that message is and how to fix it? Thank.
 * `PHP Deprecated: Automatic conversion of false to array is deprecated in /usr/
   local/lsws/mydomain.com/html/wp-content/plugins/xml-sitemap-feed/models/functions.
   sitemap.php on line 133`
 * code in line 133 is
 * function xmlsf_cache_get_archives( $query ) {
 *     ```wp-block-code
       global $wpdb;
   
       $key = md5($query);
       $cache = wp_cache_get( 'xmlsf_get_archives' , 'general');
   
       if ( !isset( $cache[ $key ] ) ) {
           $arcresults = $wpdb->get_results($query);
           $cache[ $key ] = $arcresults;
           wp_cache_set( 'xmlsf_get_archives', $cache, 'general' );
       } else {
           $arcresults = $cache[ $key ];
       }
   
       return $arcresults;
       ```
   
 * }

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-php8-1-openlitespeed-litespeed-plugin/#post-17112994)
 * Hi, thanks for reporting the issue. It’s just a “deprecated” notice so it should
   not hurt your site(map) performance but it will be fixed in the upcoming version
   🙂
 *  Thread Starter [richgiangnx](https://wordpress.org/support/users/richgiangnx/)
 * (@richgiangnx)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-php8-1-openlitespeed-litespeed-plugin/#post-17115284)
 * Thank you very much for your quick response.
    -  This reply was modified 2 years, 8 months ago by [richgiangnx](https://wordpress.org/support/users/richgiangnx/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Deprecated – php8.1 – OpenLiteSpeed – Litespeed Plugin’ is closed
to new replies.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [richgiangnx](https://wordpress.org/support/users/richgiangnx/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/php-deprecated-php8-1-openlitespeed-litespeed-plugin/#post-17115284)
 * Status: resolved