PHP 8.0 Bug
-
When switching openlitespeed to use lsphp80 after clearing all caches the following error message starts to show in debug mode (Testing sites are compatible).
Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php:223 Stack trace: #0 /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(223): strpos() #1 /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(764): LiteSpeed\Optimize->remove_query_strings() #2 /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(400): LiteSpeed\Optimize->_build_hash_url() #3 /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php(300): LiteSpeed\Optimize->_optimize() #4 /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/core.cls.php(395): LiteSpeed\Optimize::finalize() #5 [internal function]: LiteSpeed\Core->send_headers_force() #6 /home/sitename/public_html/wp-includes/functions.php(4757): ob_end_flush() #7 /home/sitename/public_html/wp-includes/class-wp-hook.php(292): wp_ob_end_flush_all() #8 /home/sitename/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #9 /home/sitename/public_html/wp-includes/plugin.php(484): WP_Hook->do_action() #10 /home/sitename/public_html/wp-includes/load.php(1072): do_action() #11 [internal function]: shutdown_action_hook() #12 {main} thrown in /home/sitename/public_html/wp-content/plugins/litespeed-cache/src/optimize.cls.php on line 223
- The topic ‘PHP 8.0 Bug’ is closed to new replies.