Simple Slider
[resolved] Undefined function sys_getloadavg in Settings page (3 posts)

  1. fairchic
    Posted 2 years ago #

    Hi there,

    I downloaded the Simple Slider plugin and installed.
    I then hit Settings > Simple Slider and the admin page crashed with:
    ( ! ) Fatal error: Call to undefined function sys_getloadavg() in C:\Share\WebSites\DVF\wordpress\wp-content\plugins\simple-slider\plugin-admin.php on line 526

    Any ideas what might be causing this? I'm using the Pinboard theme, but that shouldn't make a difference, should it?


  2. neviensnekurnekad
    Posted 2 years ago #

    That's because function sys_getloadavg is not defined on Windows systems..

    To solve error - in file plugin-admin.php - before line:
    class Simple_Slider_Admin extends Simple_Slider {

    add this dummy code:

    if ( !function_exists('sys_getloadavg') ) :
        function sys_getloadavg() { return array(0, 0, 0); }

    On a side note - it looks like these 4 lines are missing slash:
    wp_enqueue_script('cufon-yui', WP_PLUGIN_URL . $this->_plugin_dir ...
    should be:
    wp_enqueue_script('cufon-yui', WP_PLUGIN_URL .'/'. $this->_plugin_dir ...

  3. MyWebsiteAdvisor
    Plugin Author

    Posted 2 years ago #

    We appreciate you bringing this to our attention. We have updated the plugin so it should no longer cause errors on windows servers due to the sys_getloadavg function. Please update when you can.

    Thank You!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.