litespeedtech / lscache_wp

LiteSpeed Cache for WordPress
http://wordpress.org/plugins/litespeed-cache/
GNU General Public License v3.0
216 stars 109 forks source link

Crawler Settings error notice: Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array #590

Open oldrup opened 12 months ago

oldrup commented 12 months ago

Hey. Got this error on a single on of my WP 6.4 sites on the same host.. PHP 8.1:

`Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/removed/wp-content/plugins/litespeed-cache/src/crawler.cls.php:100 Stack trace: #0 /home/removed/wp-content/plugins/litespeed-cache/src/crawler.cls.php(100): in_array() #1 /home/removed/wp-content/plugins/litespeed-cache/tpl/crawler/summary.tpl.php(169): LiteSpeed\Crawler->is_active() #2 /home/removed/wp-content/plugins/litespeed-cache/tpl/crawler/entry.tpl.php(44): require('/home/sustain2/...') #3 /home/removed/wp-content/plugins/litespeed-cache/src/admin-display.cls.php(658): require_once('/home/sustain2/...') #4 /home/removed/wp-includes/class-wp-hook.php(324): LiteSpeed\Admin_Display->show_crawler() #5 /home/removed/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #6 /home/removed/wp-includes/plugin.php(517): WP_Hook->do_action() #7 /home/removed/wp-admin/admin.php(259): do_action() #8 {main} thrown in /home/removed/wp-content/plugins/litespeed-cache/src/crawler.cls.php on line 100

There has been a critical error on this website. Please check your site admin email inbox for instructions.`

Can't say if it's something regarding the install, but I've tried:

Any hints would be appreciated; I hate having an error like that linger even though I don't really need the crawler.

image

hi-hai commented 12 months ago

Can you try latest dev?

oldrup commented 12 months ago

Sure. Tried Version 6.0b2. Still no go. Disabled all other plugins, reset all the settings. Not even able to configure the crawler-settings (hoping that a valid sitemap etc maybe would help)..

image

Let my know if there's anything else I can do to troubleshoot.