• Resolved crougle

    (@crougle)


    Hello.

    I have the same problem like here:
    https://wordpress.org/support/topic/most-viewed-is-0/
    But I dont understand how to repair this. I need to add new query? Edit queries? Or what?

    In wp_popularpostssummary table, i have:
    1 ID
    2 postid
    3 pageviews
    4 view_date
    5 view_datetime

    which one i need to edit? I dont understand how to “Run query”… Please tell me in simple language exactly, step by step what i need to do in phpmyadmin. I will be grateful!

    • This topic was modified 6 years, 5 months ago by crougle.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Sorry, didn’t notice you already opened your own topic. Still, part of my answer still applies.

    Thread Starter crougle

    (@crougle)

    Ok, so:
    – PHP version: 5.4.45
    – WordPress theme Bimber 4.2 (I think, maybe this is a problem. and updates are needed?)
    – WordPress 4.8.3
    – plugins and phpmyadmin wp_popularpostssummary section:

    View post on imgur.com

    Everything works great before update WPP 4.0.5. Now Im using old version WPP 4.0.3.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, that’s it then. Other users reported some issues with the Bimber theme. The team behind this theme released an update not so long ago which seemed to fix the problem, so please upgrade your theme (and WPP as well, don’t use old versions) and if you’re still having issues let me know and I’ll gladly take a look.

    Thread Starter crougle

    (@crougle)

    Hello again,

    I’m sorry that my answer took so long. I updated bimber theme to 5.2.4. It seems like everything is working now, but I have another, much worse problem. When I turn on WordPress Popular Posts, Plugin takes all the memory & cpu and it causes the server to crash after a few minutes. I installed Query Monitor and it says that:

    Slow Database Queries (above 0,05s)
    SELECT p.ID AS ‘id’, p.post_title AS ‘title’, p.post_date AS ‘date’, p.post_author AS ‘uid’, SUM(v.pageviews) AS ‘pageviews’
    FROM wp_popularpostssummary v
    LEFT JOIN wp_posts p
    ON v.postid = p.ID
    WHERE 1 = 1
    AND p.post_type = ‘post’
    AND v.view_datetime > DATE_SUB(‘2017-11-20 02:08:08’, INTERVAL 1 WEEK)
    AND p.post_password = ”
    AND p.post_status = ‘publish’
    GROUP BY v.postid
    ORDER BY pageviews DESC
    LIMIT 6;
    +
    bimber_wpp_query_posts()
    wp-content/themes/bimber/includes/plugins/wordpress-popular-posts.php:418
    Theme 6 0,6562

    …………………….

    Slow database ‘sec’ is little, cuz i check that on night, when traffic is low. But in the day there is total failure. Please help me 🙁 my site isntt able to function without your plugin.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @crougle,

    When I turn on WordPress Popular Posts, Plugin takes all the memory & cpu and it causes the server to crash after a few minutes.

    Please read this topic.

    Thread Starter crougle

    (@crougle)

    Hello.

    My storage engine was set up to InnoDb. I did everything from here: https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance

    I got 150 k views daily. 2000 articles. I changed sample rate from 100 to 200. But still the same, cpu and memory is overloaded 🙁

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, try reducing the number of database reads the plugin does.

    Also, you might want to limit the size of WPP’s tables to keep it from growing too large for your database server to handle (specially if you have been using WPP for some time now).

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘most viewed is 0 (more detailed guide?)’ is closed to new replies.