• These errors started on 29 December and occur on a daily basis.

    2020-12-07T11:20:23+00:00 CRITICAL Uncaught Error: Class ‘WP_STATISTICS\Purge’ not found in /home/public/sites/www.happykitesurfschool.nl/wp-content/plugins/wp-statistics/includes/class-wp-statistics-schedule.php:181
    Stack trace:
    #0 /home/public/sites/www.happykitesurfschool.nl/wp-includes/class-wp-hook.php(287): WP_STATISTICS\Schedule->dbmaint_event()
    #1 /home/public/sites/www.happykitesurfschool.nl/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /home/public/sites/www.happykitesurfschool.nl/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #3 /home/public/sites/www.happykitesurfschool.nl/wp-cron.php(138): do_action_ref_array(‘wp_statistics_d…’, Array)
    #4 {main}
    thrown in /home/public/sites/www.happykitesurfschool.nl/wp-content/plugins/wp-statistics/includes/class-wp-statistics-schedule.php op de lijn 181

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author VeronaLabs

    (@veronalabs)

    Hi,

    Thank you for using our plugin.

    We fixed that on our upcoming update.

    Thanks for your patience and understanding.

    Best,

    The bug is located in includes/class-wp-statistics.php in function includes().
    Cron is not admin but you have a code (line 160 and next):

            if (is_admin()) {
                ...
                require_once WP_STATISTICS_DIR . 'includes/admin/class-wp-statistics-admin-purge.php';

    To fix it you must move require_once statement before is_admin() condition

    Thread Starter ericplugge

    (@ericplugge)

    Thanks, I changed it. I’ll check if this has solved the problem and let you know.


    require_once WP_STATISTICS_DIR . ‘includes/admin/class-wp-statistics-admin-purge.php’;

    // Admin classes
    if (is_admin()) {

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[NSFW] CRITICAL Uncaught Error: Class ‘WP_STATISTICS\Purge’’ is closed to new replies.