• Resolved kvv213

    (@kvv213)


    Hello EveryOne!

    WP standalone 5.2.2, WPP 4.2.2.

    Sometimes I see wrong numbering in the Top10 of articles. For example, the top record shows 500 viewes, the second 400, the third 1, the foruth 200.

    Here is an example:
    [url=https://a.radikal.ru/a27/1905/2e/cf6c3f9748f9.jpg][img]https://a.radikal.ru/a27/1905/2e/cf6c3f9748f9t.jpg[/img][/url]

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter kvv213

    (@kvv213)

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @kvv213,

    Sounds like Data Sampling is enabled on your site. If so, please make sure you’re using the right Sample Rate for your current traffic levels.

    Thread Starter kvv213

    (@kvv213)

    No, Data Samoling looks disabled….

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, I see what you mean now. Earlier I replied from my phone and didn’t really check your screenshots so please accept my apologies.

    I’ve seen that issue before but until now I haven’t been able to reproduce it. Please:

    1. Go to Settings > WordPress Popular Posts, append &tab=debug to the URL in the address bar of your browser and hit Enter.
    2. Copy the information displayed on your Debug screen and share it here.
    3. Log in into your server’s control panel, then access phpMyAdmin and select your site’s database.
    4. Take a screenshot of your database tables. I’m particularly interested in seeing the type and collation of WPP’s tables:

      WPP's tables in phpMyAdmin

    5. Upload your screenshot somewhere and share the URL here so I can have a look.
    Thread Starter kvv213

    (@kvv213)

    Here:
    PHP version: 7.2.17-0ubuntu0.18.04.1

    PHP extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

    Database version: 10.1.38-MariaDB-0ubuntu0.18.04.1

    InnoDB availability: DEFAULT

    WordPress version: 5.2

    Multisite: No

    External object cache: No

    WPP_CACHE_VIEWS: No

    Active plugins: 301 Redirects 2.40, Add background-size to Customizer 0.0.1, Akismet Anti-Spam 4.1.2, BBSpoiler 2.01, Classic Editor 1.5, Collapsing Archives 2.0.5, Easy WP Meta Description 1.2.3, Google XML Sitemaps 4.1.0, Jetpack by WordPress.com 7.3.1, Outsiders of the week by kvv213 for “WordPress popular posts” plug-in 0.1, Public Post Preview 2.8.0, Re-add text underline and justify 0.2, Related Posts by Sovrn 1.14, Simple Lightbox 2.7.1, SOUP – Show Off Upcoming Posts 2.3, SyntaxHighlighter Evolved 3.5.0, Webcraftic Cyr to Lat reloaded 1.2.0, WordPress Popular Posts 4.2.2, WP Crontrol 1.7.1, WP Mail SMTP 1.4.2, WP Super Cache 1.6.5

    Theme: kvv213 (1.5a) by the WordPress team

    And here:
    [url=https://radikal.ru][img]https://b.radikal.ru/b25/1905/77/5eff8d621ec2.png[/img][/url]
    [url=https://radikal.ru][img]https://d.radikal.ru/d42/1905/37/a1f274139950.png[/img][/url]

    Collation is utf8mb4_unicode_ci for both of the tables.

    PS. Not sure that I know how to attach pictures here ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks!

    OK, I have some questions for you:

    • What is “Outsiders of the week by kvv213 for “WordPress popular posts” plug-in 0.1”? What does this plugin do?
    • Do you have a staging/dev version of your website?

    PS. Not sure that I know how to attach pictures here ??

    Don’t worry, it’s not obvious and I didn’t know how either until I realized that you can just use the good ol’ <img> tag to add images here ??

    Thread Starter kvv213

    (@kvv213)

    “What is “Outsiders of the week by kvv213 for “WordPress popular posts” plug-in 0.1”? What does this plugin do?” – that is a plug-in that does the opposite to WPP thing. It does requests to WPP tables (not changing them) and displays the most non-popular posts.
    “Do you have a staging/dev version of your website?” – unfortunately not. But can try some tricks on the live site.

    Thread Starter kvv213

    (@kvv213)

    Please keep in mind that the phenomen is not steady. Sometimes it appears, sometimes it is not visible:

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ok, next time it happens please create a backup of your database so that we can reproduce the issue and get in touch with me again.

    Thread Starter kvv213

    (@kvv213)

    Hello Hector,

    I’ve prepared a copy of DB. Could you please indicate your private address to send it?

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @kvv213,

    Please get in touch with me to arrange that.

    Thread Starter kvv213

    (@kvv213)

    Done

    Hello!
    I have had exactly the same issue on the website I manage for my client: https://www.britanya.me.uk (a Russian language blog). As mentioned above, it is not consistent, sometimes it appears and sometimes not, and it can show randomly for any of the top 10 posts.

    Did you find a resolution that you might be able to share?

    Many thanks,
    Fiona

    Thread Starter kvv213

    (@kvv213)

    The problem is in determination of plural and singular type of the number.

    It is easy to fix until Hector issues the updated version.
    class-wordpress-popular-posts-output.php

    _n( ‘1 view’, ‘%s views’, $pageviews, ‘wordpress-popular-posts’ )

    change to

    _n( ‘%s view’, ‘%s views’, $pageviews, ‘wordpress-popular-posts’ )

    It won’t be in Russian but will output the correct values.

    Plugin Author Hector Cabrera

    (@hcabrera)

    It’s been fixed already, actually. It’s just that WPP 5.0 isn’t ready yet ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Wrong output of views’ is closed to new replies.