• Hi, got these in my error log:

    
    [06-Nov-2018 15:13:17 UTC] PHP Fatal error:  Uncaught Error: Call to a member function cache_size() on null in /home/xxx/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php:822
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php(789): Cache_Enabler::get_cache_size()
    #1 /home/xxx/public_html/wp-includes/class-wp-hook.php(286): Cache_Enabler::add_dashboard_count(Array)
    #2 /home/xxx/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array)
    #3 /home/xxx/public_html/wp-admin/includes/dashboard.php(316): apply_filters('dashboard_glanc...', Array)
    #4 /home/xxx/public_html/wp-admin/includes/template.php(1073): wp_dashboard_right_now('', Array)
    #5 /home/xxx/public_html/wp-admin/includes/dashboard.php(230): do_meta_boxes(Object(WP_Screen), 'normal', '')
    #6 /home/xxx/public_html/wp-admin/index.php(160): wp_dashboard()
    #7 {main}
      thrown in /home/xxx/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php on line 822
    

    seems to be happening on the admin dashboard.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Other (much lesser) log message:

    
    [06-Nov-2018 15:14:38 UTC] PHP Warning:  call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/xxx/public_html/wp-content/plugins/cache-enabler/inc/cache_enabler.class.php on line 1293
    

    which seems to be related to the Permalink settings…

    Which version of Cache Enabler are you currently running?

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi, this is 1.3.1 on PHP 7.1 … and only when Permalinks are off, so disk cache is off too. Still the dashboard info tries to get cache size. The other call_user_func() create a warning too then.

    I’ve created a pull request on Github fixing the fatal error ??

    Plugin Author KeyCDN

    (@keycdn)

    Thanks for the provided fix. We’ve merged your pull request.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Call to a member function cache_size() on null’ is closed to new replies.