WordPress.org

Support

Support » Plugins and Hacks » WordPress Popular Posts » [Resolved] Views Inaccurate After Site Migration

[Resolved] Views Inaccurate After Site Migration

  • The plugin was working perfectly up until migrating the site last week. The view count on pages is now significantly less and the top pages are also very different from what Jetpack/GA report. Specifically looking at view over the last 24 hours. (Bandwidth is not being used from the old hosting so it isn’t DNS not pointing to the new hosting)

    I tried deleting the clearing & data reinstalling and setting up the plugin/widget from scratch but this didn’t have any effect.

    Ajaxify widget is enabled and was also on the old hosting, Log views is from visitors only. Latest versions of the plugin and WordPress are being used though WordPress was updated after the migration. No plugins have changed bar a caching plugin being deactivated, theme etc. also unchanged.

    The site was on shared cPanel hosting but is now a on “cloud hosting” where there is one database with the files are on 3 servers, no idea if this would make a difference.

    All other functionality is perfect.

    http://wordpress.org/plugins/wordpress-popular-posts/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Just noticed that on same pages the setting are not being implemented and it’s just using the default widget settings.
    e.g. one page has this code to display as I want:

    /* <![CDATA[ */
                        jQuery(document).ready(function(){
                            jQuery.get('http://space-facts.com/wp-admin/admin-ajax.php', {action: 'wpp_ajax_get_popular', id: '4'}, function(data){
    							jQuery('#wpp-4').append(data);
    						});
                        });
                        /* ]]> */

    and the other uses this, the default settings:

    /* <![CDATA[ */
                        jQuery(document).ready(function(){
                            jQuery.get('http://space-facts.com/wp-admin/admin-ajax.php', {action: 'wpp_ajax_get_popular', id: '2'}, function(data){
    							jQuery('#wpp-2').append(data);
    						});
                        });
                        /* ]]> */

    I imagine the two are connected

    Plugin Author Hector Cabrera

    @hcabrera

    Hi there,

    By looking at your code it seems there are two different widgets in place (see the id parameter?). Not really sure if the cloud hosting would make a difference or not since I haven’t tested the plugin on such enviroment but I doubt it. The only difference I see from your comments is the WordPress update (I assume you were using 2.3.7 before moving to your new hosting?).

    Hi, yes using the 2.3.7 before and the only site change since then was the WordPress update. Changed database passwords & user as well as having to set a specific IP for the database in WP config rather than localhost.

    Removing the widget also gets rid of the one I want but keeps the other so there is definitely 2 versions of the site. Going to check this with the hosting company see if it’s a thing with WordPress.

    Do you think the incorrect view number will be coming from this?

    Thanks,

    Plugin Author Hector Cabrera

    @hcabrera

    Can’t tell for sure without inspecting your site closely. I’ll try to stop by your website later today if time allows it.

    Hi Hector,

    Many thanks, I’ve now noticed another plugin is not picking up changes made to it as is the body on some pages.

    Interestingly the pages that get the top traffic (in GA) are those that show the default plugin settings and picking up views in the plugin while the pages now being reported as the top all show the plugin correctly.

    Seems certain this is not anything to do with the plugin and there is something going on with the hosting, the plugin just picked up on it because it’s tracking views differently.

    Plugin Author Hector Cabrera

    @hcabrera

    I see. Could it be that your WordPress setup got somehow corrupted during migration / upgrade process?

    It was the caching plugin all along, despite it being deactivated. Had to strip everything WP Supercache had added to .htaccess and it is now all working fine, very weird how some pages were being affected and others not.

    Really appreciate the help.

    Plugin Author Hector Cabrera

    @hcabrera

    That’s good news! Thanks for letting me know.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Views Inaccurate After Site Migration’ is closed to new replies.
Skip to toolbar