• Resolved Graham

    (@sandgroper)


    When you delete the history, you get an error log file created. This is because of an error in:

    /admin/class-page-visit-counter-admin.php

    Line 634 has the wp database prefix included, which gives a double prefix, causing the error:

    $reset_result_referer = $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}wp_page_visit_referer" );

    It should be:

    $reset_result_referer = $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}page_visit_referer" );

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

    (@dots)

    Hello sandgroper,

    Thanks for reaching out to us.

    We have troubleshoot and updated the code as you provided the correct code in our latest version 6.0.5

    Please update it and let us know still you face any issue we are happy to help.

    Thanks,

    Thread Starter Graham

    (@sandgroper)

    Unfortunately, you have bumped the minimum WP version to 5.0 and I run ClassicPress, which is a fork of the 4.9 branch.

    So I am unable to update to the new version.

    Thread Starter Graham

    (@sandgroper)

    I changed the version requirement setting, re-zipped it and it installed okay.

    Deleted the page visits and there were no problems. So it is fixed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code error for delete history’ is closed to new replies.