• Resolved FireMyst

    (@firemyst)


    HI everyone:

    I’ve noticed on my admin posts listing page, “total views” and “today’s views” is always 0 now and never changes.

    On any post of page, it doesn’t matter where I visit from, it always says, “(Visited 1 times, 1 visits today)”. DOesn’t matter if I ping it from different computers/networks or not.

    Under the settings, I’ve tried each of the following methods, and neither makes a difference:

    REST API based: Uses the REST API to record visits
    Query variable based: Uses query variables to record visits
    Ajaxurl based: Uses admin-ajax.php which is inbuilt within WordPress to process the tracker

    I have WP 6.9 and WP Rocket caching plugin installed. After every change, in WP Rocket I click to have it clear and preload the cache.

    When I view the plugin’s page, I do not see any errors indicating missing tables. The only message I find is on the import/export settings that says, “WordPress Popular Posts plugin is not active and no WPP tables were found in the database. Import is not possible.” I’m not trying to import anything so that shouldn’t matter.

    What could be the issue?

Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Author Ajay

    (@ajay)

    I also pushed through v4.3.3 – this goes “live” in 24 hours out here but you can download and install it directly from https://wordpress.org/plugins/top-10/

    I added a new setting in the Tracker tab to use the “legacy” tracking mode which was before v4.3. This might work better on your site as I feel the funnel system seems to be an issue for some reason that I cannot figure out.

    Thread Starter FireMyst

    (@firemyst)

    See below screen capture of the Tools screen. Two things that seem odd (which could be legit) :

    1. Maintenance Cron says not scheduled
    2. Aggregation cron says runs every two minutes but the next scheduled run is in a week?
    Plugin Author Ajay

    (@ajay)

    1. Maintenance cron is off, which is normal if you haven’t turned it on in the Settings page. This cleans up the daily tables to remove any entries older than 180 days.

    2. Aggregation cron is wrong and I think that’s what is causing you to manually sync the funnel. Can you deactivate the plugin, then reactivate the plugin, and check this page again? The cron should say: Next run in 3 minutes or less.

    Thread Starter FireMyst

    (@firemyst)

    This is broken!

    I deactivated / reactivated as you requested. I skipped the set up wizard stuff.

    At first, it seemed fine. Said runs every 2 minutes, next run in 18 seconds.

    I refreshed a little later, said runs every 2 minutes, next run in 47 seconds.

    Then runs every 2 minutes, next run in 2 minutes.

    Then next run in 3 minutes.

    Now it says next run in 5 minutes.

    Now it says, “Runs: Every 2 Minutes. Next run: in 7 minutes”

    So it’s not calculating the “next run” time correctly.

    Plugin Author Ajay

    (@ajay)

    Unfortunately, I think there is a bigger issue on the cron than the time calculation and I’m not sure if something is interfering with the run schedule that is set to 2 minutes. Once set it should run forever unless something interferes with it.

    I know you’ve spent a tonne of time debugging this. One option is to wait till 4.3.3 update gets visible for everyone in about 8-12 hours. Then switch to legacy mode.

    Alternatively, if you’re okay to investigate further, I use WP Crontrol plugin to see what crons run.

    https://wordpress.org/plugins/wp-crontrol/

    In there you should be able to see the tptn_aggregation_cron.

    Plugin Author Ajay

    (@ajay)

    @firemyst

    I’ve pushed v4.4 into the repository. There is a button in the tools page that allows you to recreate the cron jobs. Can you try that and see if it makes a difference?

    Separately, you can also switch to the legacy mode in the settings page.

    Thread Starter FireMyst

    (@firemyst)

    I’ve installed v4.4 and clicked the “fix cron schedules” button.

    After that, I visited the page https://cc.davelozinski.com/general/change-your-default-dns where it says “108 total visits, 1 visit today”

    I then went back to the listing of all the posts on the site, and it says, “108 total views”, and “daily views” is still zero.

    I viewed the posts listing again 10 hours later, and the count hasn’t been updated.

    So then I went back to the top 10 tools page, clicked “sync funnel now” and WHAMMO! The counts are immediately updated on the page listing all my posts.

    On the “Settings” page, “Legacy Widgets” was already enabled.

    I do see the “tptn_aggregation_cron_hook” cron job you mentioned. It has an exclamation point with the following:

    ! 6 hours 41 minutes ago (Help)
    Today at 7:41 am

    • This reply was modified 1 month, 1 week ago by FireMyst.
    Thread Starter FireMyst

    (@firemyst)

    UPDATE!

    Looks like things are working now. THe wp-cron.php wasn’t running.

    For everyone’s future reference, to fix this to bypass everything, I added the following to the wp-config.php files in each of the sites:

    define(‘DISABLE_WP_CRON’, true);

    Then in cPanel I created a new cron job that runs locally bypassing HTTP403 restrictions that may be in play.

    The command is similar to:

    php /home/username/public_html/wp-cron.php >/dev/null 2>&1

    My cron jobs are now running according to the “WP Control” plugin you referred me to (thank you) as I’m receiving emails from various sites I run that I haven’t in a while.

    Yippee 🙂

    Plugin Author Ajay

    (@ajay)

    Brilliant! Thank you very much for confirming this. I’m happy 🙂

    Please can I request you to write a review of the plugin: https://wordpress.org/support/plugin/top-10/reviews/

    It goes a long way to attract users to the plugin.

Viewing 9 replies - 16 through 24 (of 24 total)

The topic ‘“Today’s VIews” count is always zero in admin in v4.3.1’ is closed to new replies.