Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter Lakjin

    (@lakjin)

    After running the above-mentioned script, yeah it seems to be working fine.

    Lakjin, where you run the script?

    Thread Starter Lakjin

    (@lakjin)

    @aldon: Create a PHP script, throw the code into the script, and run it via browser or SSH.

    Thread Starter Lakjin

    (@lakjin)

    @ajay: I don’t know why but for some reason entries with blog_id 0 are still being created sometimes (not all the time and not for all posts) in wp_top_ten, which is causing the above mentioned issue. Any idea what is up?

    Plugin Author Ajay

    (@ajay)

    Are these on specific posts that you notice the behaviour or all? With 2.0.3, i’ve set the default entry for the column to be 1, so 0 should, in theory, never find its way in.

    Thread Starter Lakjin

    (@lakjin)

    It seems like random posts are having the issue, I can’t seem to find a rhyme or reason why — it isn’t all posts, though.

    Plugin Author Ajay

    (@ajay)

    Can you please confirm if the default for blog_id column is 1 and not 0? I set it to be 1 in v2.0.3 but want to double check to ensure that this went through.

    There could possibly be a case where get_current_blog_id() might be returning 0, which is something unexpected.

    After line 150 of the top-10.php file:

    $blog_id = get_current_blog_id();

    could you please add this:

    if ( empty( $blog_id ) ) {
      $blog_id = 1;
    }

    With this, could you please monitor the database to see that this doesn’t recur?

    Thread Starter Lakjin

    (@lakjin)

    Sorry for the late reply. Just added that, let’s see what happens!

    Plugin Author Ajay

    (@ajay)

    Thanks. Please do let me know if it fixes. I’ve managed to iron out some minor things across the plugin. It seems to be working well on my blogs in different conditions with Varnish caching.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Counters not shown properly since v2 update’ is closed to new replies.