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

    (@hcabrera)

    Hi svehex,

    It’s been like that since you installed the plugin, or just in the past few days? Can you check that the tables wp_popularpostsdata and wp_popularpostsdatacache are installed in your database?

    Hello Héctor and svehex,

    I had the plugin doing ok, just before a serious server crash, where I lost all of my installs… so I redid the whole thing, but no matter what I try now, I cannot seem to get it to record visits?

    The two fields are in the database, and are being populated. It is a multisite install.

    Any suggestions? Thanks!

    bisi

    Plugin Author Hector Cabrera

    (@hcabrera)

    jbisenius,

    What version of WordPress Popular Posts are you running now?

    Hello again,

    It’s version 2.2.1 actually… I added the line the other user suggested last week, and that didn’t do it either… and it has all in all been running and recording for 2 weeks I’d say… logged in and not logged in…

    Thanks for the help!

    bisi

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ok, to summarize: tables are there in your database and are being populated, still you keep getting “Sorry no data so far”? Am I right?

    Can you please share a screenshot of your settings so I can test them here? Also, if possible, please post your site’s URL so I can take a look at your theme’s code.

    Yes. The sites where it is set up is https://www.cij.lu and cartejeunes.lu

    The screenshots are:
    https://cij.lu/wp-content/uploads/screenshot01.jpg
    https://cij.lu/wp-content/uploads/Screenshot03.png
    and here: https://cij.lu/wp-content/uploads/Screenshot02.png

    Thanks again for your time!

    bisi

    Plugin Author Hector Cabrera

    (@hcabrera)

    Just checked your site, everything looks in place so let’s try something else. Please, open wordpress-popular-posts.php using a text editor such as Notepad or Dreamweaver, find this code (around line 624):

    //echo "SELECT $wpdb->posts.ID, $wpdb->posts.post_title $fields FROM $wpdb->posts $join WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_password = '' AND $range $force_pv $nopages $exclude GROUP BY $wpdb->posts.ID ORDER BY $sortby DESC LIMIT " . $instance['limit'];

    … and uncomment it:

    echo "SELECT $wpdb->posts.ID, $wpdb->posts.post_title $fields FROM $wpdb->posts $join WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_password = '' AND $range $force_pv $nopages $exclude GROUP BY $wpdb->posts.ID ORDER BY $sortby DESC LIMIT " . $instance['limit'];

    Save changes. Then, a line of code should show on your homepage, right before the “Sorry, no data so far” text. Get a screenshot of that and email it to me: hcabrerab at gmail so I can see the output. Oh, remember to comment back that line of code as well!

    Dear Héctor,

    I got exactly the same issue with the latest version of WordPress.

    Kind regards
    Bjoern

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi Bjoern,

    Can you please check that the wp_head() tag is present on your theme’s header? If so, follow the instructions above.

    Dear Héctor,

    wp_head() tag is present.
    I just dropped you a screenshot.

    Best
    Bjoern

    Thread Starter Linda Ursin

    (@svehex)

    It’s been the same all along. The tables are missing. I assume I should reinstall the plugin?

    Actually, for me it all seems to be working now. The error was numbers per plugin in the database tables that WP Multisite created, it seems.

    I am quite sure this is what I did to make it work. I installed the plugin in Network Admin, then activated the plugin in each site, and then Network activated it. It works now. For all of them… (cij.lu etc)

    Could well be it only all along had to be network activated though…

    Thanks for your help Hector, and hope this can help the others that are still struggling!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks for posting, jbisenius! I’m sure that others will appreciate the info!

    @svehex: in your case, upgrading to the latest version should be enough to create the tables for you since my plugin checks for the existance of these on activation, and if found missing it’ll try to create them. Give that a try and let me know.

    Thread Starter Linda Ursin

    (@svehex)

    Upgrading didn’t help. I had to remove the plugin and install the latest version before the tables showed up.

    Plugin Author Hector Cabrera

    (@hcabrera)

    I see. Probably just by deactivating and reactivating the plugin it would have worked as well. I thought that on upgrade WordPress would do that automatically but it appears that it doesn’t.

    Anyways, good to know that everything’s doing good now!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: WordPress Popular Posts] Sorry, no data so far’ is closed to new replies.