WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] Daily Popular Posts in admin panel empty (41 posts)

  1. dorjeduck
    Member
    Posted 1 year ago #

    Hi,

    since i updated the plugin yesterday there seem to be a problem with the display of the daily popular posts in the admin panel. It is empty. The plugin still register blog visits as the all hits counter increases. I havent changed any settings after the update ...

    My blog is here just dharma quotes

    Thanks

    martin

    http://wordpress.org/extend/plugins/top-10/

  2. zvhipp
    Member
    Posted 1 year ago #

    I can't also see daily popular posts in admin or even on front end list is not being generated after update.

  3. rhythmdoctor
    Member
    Posted 1 year ago #

    Same here. After updating the plugin the other day - the Daily top 10, which is what I was using it for, has stopped working in admin and public. Any ideas how to fix?

  4. vietnamica
    Member
    Posted 1 year ago #

    I face the same. Just after upgrading to new version of 1.9.5

  5. lklow
    Member
    Posted 1 year ago #

    I have the same problem too. Other than my daily popular posts, there isn't any new count for individual post since yesterday. Can anyone help to fix to this problem?

    This is my blog: http://food-4tots.com/

    Thanks.

    Regards,
    Lai Kuan

  6. vietnamica
    Member
    Posted 1 year ago #

    Quite sure that 1.9.5 creates this trouble. When I reinstall 1.9.1, Top10 works just perfectly as usual.

  7. lklow
    Member
    Posted 1 year ago #

    May I know how do I reisntall the previous version 1.9.4? Will my existing data still intact?

  8. dorjeduck
    Member
    Posted 1 year ago #

    as expected - public list of popular posts now also empty - did anybody find a solution?

  9. WiKaBot
    Member
    Posted 1 year ago #

    Same problem:

    The total count seems to be ok. A short check to the sql-database field: ">>> _top_ten_daily" shows, that there are no more entries since update, simply empty.

    Has anyone else these problems or am I alone with this, and if someone else encounters this problem since last update, how can I fix this.

    Many Thanks in advance for a helpful answer.

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    @WiKaBot: Please continue with your previous topic.

  11. WiKaBot
    Member
    Posted 1 year ago #

    @esmi … no problem, just and only thought this is the same thing. If so, would you remove the resolved flag I set on that threat.

  12. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    All, seems like the 1.9.5 update broke the Top 10 daily counts though it worked perfectly fine in my test install.

    You can get hold of the v1.9.4 from http://downloads.wordpress.org/plugin/top-10.1.9.4.zip for now.

    You'll need to FTP into your install and install the plugin from there

    I'll work on v1.9.5 and release a fix asap.

  13. WiKaBot
    Member
    Posted 1 year ago #

    Thank you, I did it this way and the daily counter is back noe … will wait for further notice from you, after a fix, to make that update again.

  14. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    An alternate fix is to edit top-10-addcount.js.php file.

    Replace the line:

    if ( $activate_counter == 10 ) $wpdb->query("INSERT INTO $top_ten_daily (postnumber, cntaccess, dp_date) VALUES('$id', '1', '$current_date' ) ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");

    with

    if ( ($activate_counter == 10) || ($activate_counter == 11) ) $wpdb->query("INSERT INTO $top_ten_daily (postnumber, cntaccess, dp_date) VALUES('$id', '1', '$current_date' ) ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");
  15. dorjeduck
    Member
    Posted 1 year ago #

    Hi Ajay,

    just applied the fix and the daily popular are back - thanks a lot for the great plugin and quick fix.

    martin

  16. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome. I'll try to get an update out tonight or tomorrow morning.

  17. rhythmdoctor
    Member
    Posted 1 year ago #

    YAY... Thanks Ajay

  18. WiKaBot
    Member
    Posted 1 year ago #

    Thanks … I reinstalled 1.9.5, applied the above fix and now the daily counts are present again … ✅✅✅

  19. vietnamica
    Member
    Posted 1 year ago #

    Many thanks Ajay. 1.9.6 works perfectly.

  20. lklow
    Member
    Posted 1 year ago #

    I have installed 1.9.6 and the daily counts are back. However, the counts didn't reflect the same clicks based as per my live feed. May I know why?

  21. rhythmdoctor
    Member
    Posted 1 year ago #

    Ah.... Ajay, I dont know why but I upgraded and the problem remains - no change on my end - still no daily counts. Any ideas?

  22. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    v1.9.6 should ideally fix this issue for all.

    @iklow, Before 1.9.6 was installed, the plugin didn't track any hits at all on a daily basis. It should track fine now and then ideally reconcile with your live feed

    @rhythmdoctor, did your site break in 1.9.5? Can you point me to your site so I can take a look?

  23. lklow
    Member
    Posted 1 year ago #

    Hi Ajay,

    I have already installed the latest plugin for a couple of hours. Unfortunately, the figures appearing at the Daily Popular List are still not reflecting my live feed. Each post has 1-2 counts only. Seems weird.

    This is my site: http://food-4tots.com/. Can you take a look? Thank you.

    Regards,
    Lai Kuan

  24. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    What do you mean by "live feed"?

    I can see the code to add the count getting added correctly to your post. But, is there a place I can view the count?

  25. lklow
    Member
    Posted 1 year ago #

    I am comparing my Live Feed Widget (at the right sidebar) vs my Top 10 Daily Counts in admin.

    Yes, you can see the views if you go to my archived posts by categories or months (eg http://food-4tots.com/2013/06). Even if I clicked on one post to test, the page view didn't show up in Daily Popular Post inside my admin.

  26. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Are you noticing any errors in your error_log in your plugin folder?

    I can't see anything wrong with the code, since the code appears to be loading fine on your site:

    http://food-4tots.com/wp-content/plugins/top-10/top-10-addcount.js.php?top_ten_id=6708&activate_counter=11

  27. lklow
    Member
    Posted 1 year ago #

    No, I don't see any error log in my plugin folder. But I have seen an error log in my public_html folder. Is it the same? Can I communicate with you via email?

  28. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Sure. Drop me a line at me AT ajaydsouza DOT com

  29. askirikicciu
    Member
    Posted 1 year ago #

    Ajay, me too do not appear visits, maximum 1 or 2

  30. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Can you replace line 24 with:

    $wpdb->query("INSERT INTO $table_name (postnumber, cntaccess) VALUES('$id', '1') ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");

    and line 26 with:

    $wpdb->query("INSERT INTO $top_ten_daily (postnumber, cntaccess, dp_date) VALUES('$id', '1', '$current_date' ) ON DUPLICATE KEY UPDATE cntaccess= cntaccess+1 ");

    I'm removed the conditional cases which could be causing a problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic