• Resolved roaming1

    (@roaming1)


    I have to start by complementing you on an excellent plugin.

    After updating to 7.0, WPP has stopped counting views. I can go back in the stats 24 hours and further (prior to updating) and see the views, but after updating, nothing is being counted. The WPP block on the trending page is displaying a scrolling red line-as nothing is being logged. No other changes have been made except updating to WP 6.5.5. Any advice?

    Plugin Configuration:

    Log Limit: Yes, keep data for 180 days

    Log Views From: Visitors only

    Data Caching: Yes, 2 hour

    Data Sampling: No

    External object cache: No

    WPP_CACHE_VIEWS: No

    System Info

    PHP version: 8.2.20

    PHP extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, ldap, exif, mysqlnd, odbc, PDO, pgsql, Phar, posix, pspell, shmop, SimpleXML, snmp, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, xmlreader, monarxprotect, imagick, sodium, ionCube Loader, Zend OPcache

    AVIF support: No

    WebP support: Yes

    Database version: 10.6.18-MariaDB-log

    InnoDB availability: YES

    WordPress version: 6.5.5

    Multisite: No

    Theme: Astra Child Theme (1.0.0) by Brainstorm Force

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

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

    (@hcabrera)

    Hi @roaming1,

    I have to start by complementing you on an excellent plugin.

    Thanks! I’m glad you like it!

    After updating to 7.0, WPP has stopped counting views. I can go back in the stats 24 hours and further (prior to updating) and see the views, but after updating, nothing is being counted.

    I had a look at your site and WPP’s script file (wpp.min.js) is nowhere to be found which is needed by the plugin to track visits, load your popular posts lists, etc.

    This is most likely being caused by a site optimization plugin. You forgot / didn’t include your list of active plugins so I can’t tell you where to check first. Try following these troubleshooting instructions to figure out what’s causing this.

    Plugin Author Hector Cabrera

    (@hcabrera)

    won’t update until this is resolved

    Without more information from you guys it’s a little difficult to “resolve” things.

    Please follow the troubleshooting guide as instructed above and report back your results

    Thread Starter roaming1

    (@roaming1)

    Discovered a conflict with Autoptimize. The issue developed after the last wpp update. Added wpp.min.js to exclude scripts list in Autoptimize and the views are being counted.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks for the report, @roaming1!

    Just tested the plugin with Autoptimize enabled, using its default settings and WPP worked normally, no issues with loading the popular posts list nor with views tracking.

    Which settings are/were you using with Autoptimize?

    Thread Starter roaming1

    (@roaming1)

    The following are enabled with Autoptimize:

    Optimize JavaScript Code? YES

    Aggregate all linked JS-files to have them loaded non-render blocking? YES

    Optimize CSS Code? YES

     Aggregate all linked CSS-files? If this option is off, the individual CSS-files will remain in place but will be minified. YES

    Optimize HTML Code? YES

    Save aggregated script/css as static files? By default files saved are static css/js, uncheck this option if your webserver doesn’t properly handle the compression and expiry. YES

    Minify excluded CSS and JS files? When aggregating JS or CSS, excluded files that are not minified (based on filename) are by default minified by Autoptimize despite being excluded. Uncheck this option if anything breaks despite excluding. YES

    Also optimize for logged in editors/ administrators?
    By default Autoptimize is also active for logged on editors/ administrators, uncheck this option if you don’t want Autoptimize to optimize when logged in e.g. to use a pagebuilder. YES

    Enable configuration per post/ page?
    Add a “metabox” to the post/ page edit screen allowing different optimizations to be turned off on a per post/ page level? YES

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks! I was able to replicate the issue. Indeed, the “Aggregate JS files” option is what’s causing the issue, excluding the wpp.min.js file does fix that.

    Also noted that with the Aggregate JS Files option disabled but the Defer one (right below the former) enabled instead everything still works so it’s an option to consider.

    Still, personally I’d probably go with the Aggregate JS Files options instead, excluding wpp.min.js as you did since it’s a small file anyways (less than 2KB when GZIP compression is enabled on the server.)

    Anyways, I appreciate your assistance here. Hopefully this entire thread will help someone else in the future.

    I’m marking this topic as resolved. @cck23 and @wpress1 please open a new topic, share your site URLs, and follow these instructions so I can help.

    Hi all

    I just wanted to add, in case it helps anyone, that I had the same problem with LiteSpeed and it was solved with this wpp.min.js exclusions (after reading this thread).

    https://ibb.co/QDvc1V8

    Regards

    • This reply was modified 7 months, 2 weeks ago by jrmora.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks for chiming in, @jrmora! That’s super helpful!

    I use LiteSpeed Cache as well but wasn’t able to fix the problem (I had JS Minify turned off.)

    Views dropped right away after I updated to 7.0.0.

    wp-server

    server_architecture: Linux 3.10.0-962.3.2.lve1.5.64.el7.x86_64 x86_64
    httpd_software: LiteSpeed
    php_version: 7.4.33 64bit
    php_sapi: litespeed
    max_input_variables: 10000
    time_limit: 600
    memory_limit: 256M
    max_input_time: 600
    upload_max_filesize: 128M
    php_post_max_size: 128M
    curl_version: 7.87.0 OpenSSL/1.1.1w
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true

    wp-database

    extension: mysqli
    server_version: 10.3.39-MariaDB-cll-lve
    client_version: mysqlnd 7.4.33
    max_allowed_packet: 1073741824
    max_connections: 500
    Plugin Author Hector Cabrera

    (@hcabrera)

    Try following these instructions and do this as well, @wpress1.

    If you’re still having troubles after that then, as requested, please open a new topic so we can discuss it further.

    I update in case it serves as a clue because it is a somewhat strange behaviour and I am still not clear about the pattern. In many posts it counts the visits, but for example in the last one published it doesn’t count them (only if the user is logged in) and in some older posts it doesn’t count them either.

    And even stranger, when I give several clicks as connected they are counted but in incognito visit they are not shown (not even clearing the browser cache and LiteSpeed cache completely).

    I have tried with these two exclusions already mentioned in LiteSpped/ Exclude JS and Deferred / delayed JS exclusions /

    /wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js
    /wp-content/plugins/wordpress-popular-posts/assets/js/wpp.js

    And just to test, I also added them in Guest Mode JS Exclusions, so far with no effect.

    • This reply was modified 7 months, 1 week ago by jrmora.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @jrmora,

    Keep an eye on that and if you manage to identify what’s going on please open a new topic and share the details so I can look into it. Also, when reporting problems like this that according to your words can be reproduced by non-logged in users please share your site’s URL so I can see the issue myself.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘7.0 Update Issue’ is closed to new replies.