WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fairchic
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/simple-slider/

  2. neviensnekurnekad
    Member
    Posted 1 year 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); }
    endif;

    --------------
    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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.