WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] Another - Sorry. No data so far Error (13 posts)

  1. dbirchfield
    Member
    Posted 1 year ago #

    Hello, apologies for this question that has been address before, but I'm not able to find a solution.

    I activated the plugin several days ago and I have been navigating the site as an anonymous user (and logged in). Following the instructions and FAQ, I also verified that

    1) wp_head(); is in my theme
    2) my database user has create/update/modify permissions

    Following some solutions in the forum, I've tried disabling other plugins, but this hasn't resolved the issue.

    I'm getting the 'No Data' error in the dashboard, regardless of the ways that I configure the settings.

    My site is: http://scottsdale-home-decor.com, and I have the widget at the bottom of the right sidebar.

    Is there anything you might be able to see that I'm missing?

    Thanks!
    David

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

  2. ekarta
    Member
    Posted 1 year ago #

    do you fix this I have same problem
    what you use now widget or plugin and which one in single post
    part You might also enjoy...

    thanks

  3. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Hi David,

    Are you sorting your posts by comments? Your Time Range is set to last 24 hours and it seems your site doesn't get that many comments per day. I'd suggest to order your list by views instead.

  4. dbirchfield
    Member
    Posted 1 year ago #

    Hi Hector,

    I have it set to sort by views.

    Thanks for your help!

  5. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Just took another look at your site. It seems you're having some issues with Javascript, jQuery doesn't seem to be loading correctly and it seems to be causing conflicts with another script installed on your site.

    Edit: I also see you have W3 Total Cache installed, so it could just be that what you're seeing is the cached version of the WPP plugin, not the actual data. WPP does not support caching plugins properly yet.

    If none of that helps, then please try the following:

    # Open wordpress-popular-posts.php using a text editor such as Notepad or Adobe Dreamweaver
    # Find:

    <!-- WordPress Popular Posts v<?php echo $this->version; ?> -->
    <script type="text/javascript">
        /* <![CDATA[ */
    	jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id; ?>}, function(data){/*alert(data);*/});
        /* ]]> */
    </script>
    <!-- End WordPress Popular Posts v<?php echo $this->version; ?> -->

    # Change it to:

    <!-- WordPress Popular Posts v<?php echo $this->version; ?> -->
    <script type="text/javascript">
        /* <![CDATA[ */
    	jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id; ?>}, function(data){ console.log(data); });
        /* ]]> */
    </script>
    <!-- End WordPress Popular Posts v<?php echo $this->version; ?> -->

    Please let me know when you're done so I can go check again. This modification won't display anything visible on your site, it's just for testing purposes.

  6. dbirchfield
    Member
    Posted 1 year ago #

    Hi Hector,

    Thanks again for your help in troubleshooting this.

    Previously I did turn off W3 Total Cache, but it didn't appear to change the display. Are you saying that in general the plugin will not work with W3 Total Cache?

    I have made the above change in wordpress-popular-posts.php.

    Best, David

  7. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Yup, it shouldn't work with W3TC nor any other caching plugin at all (however, WPP seems to works with WP Super Cache). I've already fixed that on the development version of the WPP plugin and so far it appears to work fine. This version, however, still needs some polishing so if you decide to try it out let me know if you encounter any issues with it (I'm sure you won't, though).

  8. dbirchfield
    Member
    Posted 1 year ago #

    Thanks for providing this development version. I've uploaded this to my site, emptied the W3TC caches for good measure, but I'm still seeing the same No data error.

    Is there anything else I could try?

  9. dbirchfield
    Member
    Posted 1 year ago #

    Hi Hector,

    Not sure if this is helpful information, but I checked my wp database and it appears that the plugin did create tables (wp_popularpostsdata, wp_popularpostsdatacache). However, it doesn't appear that data is written to the tables.

    Thanks, David

  10. dbirchfield
    Member
    Posted 1 year ago #

    One last piece of information is that I'm trying this plugin on a multisite installation. Are there any additional installation steps for this?

  11. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, Multisite. That could be it.

    Can WordPress Popular Posts run on WordPress Multisite?
    While it's not officially supported, other users have reported that my plugin runs fine on WordPress Multisite. According to what they have said, you need to install this plugin using the Network Activation feature.

    Did you enable the plugin using the Network Activation option?

  12. dbirchfield
    Member
    Posted 1 year ago #

    Yes, it has been enabled via Network Activation.

  13. Héctor Cabrera
    Member
    Plugin Author

    Posted 1 year ago #

    For some reason, the jQuery script isn't loading on your single.php template. Something is preventing WPP from inserting it into your theme's head section - hence WPP can't update the views information. Without checking your theme's code I'm afraid I can't do much more.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic