Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hey Pietro!

    Something is killing jQuery on your site (see screen capture), thus any script that uses it won’t be executed (and that includes WPP’s Ajax update).

    As usual, disable all of your plugins but WPP and then visit a post. If the view is registered, then enable your plugins one by one until WPP fails to register a new visit – this way, you’ll find out which plugin is causing the problem.

    Thread Starter pietro.montagna

    (@pietromontagna)

    Hi Hector!

    Thanks for your support…could it be a theme issue or are you sure that it’s a plugin problem?

    Thanks

    Plugin Author Hector Cabrera

    (@hcabrera)

    It could be theme related as well. Did you guys make any changes to it recently?

    Thread Starter pietro.montagna

    (@pietromontagna)

    Nothing!
    I have made like you advised but the issue is the same….

    Thread Starter pietro.montagna

    (@pietromontagna)

    Hi Hector,
    I added this code in functions.php

    function comment_links_in_new_tab($text) {
    $return = str_replace('<a', '<a target="_blank"', $text);
    return $return;
    }
    add_filter('get_comment_author_link', 'comment_links_in_new_tab');
    add_filter('comment_text', 'comment_links_in_new_tab');

    Hope that it help you

    Plugin Author Hector Cabrera

    (@hcabrera)

    That’s odd. Something must have changed on your site from last time we talked.

    Anyways, I just released a new Beta version of WPP on Github. Among other things, it includes a check to make sure jQuery is properly loaded. You might want to give it a try: https://github.com/cabrerahector/wordpress-popular-posts/releases.

    Edit: that code you posted above should not cause any negative consequences, so it must be something else.

    Thread Starter pietro.montagna

    (@pietromontagna)

    Great Work….now it’s working!

    Thanks.
    Two question!
    1) The issue (for my blog) on jQuery isn’t solved, right?
    2) I have missed definitely the views of the last day, right?

    Thanks for all.
    Pietro

    Plugin Author Hector Cabrera

    (@hcabrera)

    1. jQuery will work now because of the additional checks introduced with WPP 3.1.2 Beta. However, if you disable WPP for whatever reason jQuery will break again. You should check that.

    2. Unfortunately, yes. WPP relies on jQuery to track views – if it breaks then WPP won’t be able to register new visits. That’s why I decided to add some extra checks to make sure jQuery is loaded when WPP requires it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘The number of views isn't upgraded’ is closed to new replies.