Support » Plugin: Simple Slider » Undefined function sys_getloadavg in Settings page

  • Resolved fairchic


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 ...

    Plugin Author MyWebsiteAdvisor


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined function sys_getloadavg in Settings page’ is closed to new replies.