Support » Plugin: LiteSpeed Cache » Crawler keeps causing crashes

  • Resolved Joshua Reynolds

    (@technisolutions)


    We have the LSCache WP plugin installed on 2 sites one with & one without QUIC.cloud. I never tried to enable the crawler on the one that’s cached separately since I didn’t see the need but even after restarting the server then we keep getting fatal errors (E_ERROR) when trying to manually run the crawler for preloading the cache for the QUIC.cloud cached site. Here’s the most recent one:

    
    2019-07-18T18:51:00+00:00 CRITICAL Uncaught Error: Call to undefined function sys_getloadavg() in C:\wamp64\www\EMRO\wp-content\plugins\litespeed-cache\lib\litespeed\litespeed-crawler.class.php:458
    Stack trace:
    #0 C:\wamp64\www\EMRO\wp-content\plugins\litespeed-cache\lib\litespeed\litespeed-crawler.class.php(229): Litespeed_Crawler->_adjust_current_threads()
    #1 C:\wamp64\www\EMRO\wp-content\plugins\litespeed-cache\inc\crawler.class.php(485): Litespeed_Crawler->engine_start()
    #2 C:\wamp64\www\EMRO\wp-content\plugins\litespeed-cache\inc\crawler.class.php(354): LiteSpeed_Cache_Crawler->_crawl_data(false)
    #3 C:\wamp64\www\EMRO\wp-includes\class-wp-hook.php(286): LiteSpeed_Cache_Crawler::crawl_data()
    #4 C:\wamp64\www\EMRO\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #5 C:\wamp64\www\EMRO\wp-includes\plugin.php(531): WP_Hook->do_action(Array)
    #6 C:\wamp64\www\EMRO\wp-cron.php(133): do_action_ref_array('litespeed_crawl...', Array)
    #7 {main}
      thrown in C:\wamp64\www\EMRO\wp-content\plugins\litespeed-cache\lib\litespeed\litespeed-crawler.class.php on line 458

    Report number: MUDPYCSA
    Report date: 07/18/2019 18:48:37

    Please assist, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You are using Windows, and that function is not implemented in PHP for windows. See https://www.php.net/manual/en/function.sys-getloadavg.php

    Is this a development or production environment?

    Thread Starter Joshua Reynolds

    (@technisolutions)

    Well its about to be production since were in a soft launch for a few more days now.

    Now nowhere in the crawler documentation does it say that is only available for Apache for Linux although the example directory paths imply it a bit. Whether its documented or not, the plugin should be smart enough to check if on Windows & not allow the crawler to be enabled (manually or by cron job) until it is compatible. At first I only noticed the crashes/errors when I got “Your Site is Experiencing a Technical Issue” e-mails from WordPress each time I manually ran the crawler but come to find out when looking at the server logs that the cron job has been running and erroring out a lot. This issue could and should be avoided until ready for WAMP support.

    Plugin Support Hai Zheng⚡

    (@hailite)

    The fix is in https://github.com/litespeedtech/lscache_wp/commit/7f6d1673aabff6670a0b7b7548411ea22afe4b42 and will be in v3.0. There will be no PHP fatal error shown.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Crawler keeps causing crashes’ is closed to new replies.