• Resolved nevish

    (@nevish)


    Hi,

    since i changed my theme (now I have Kadence, before i had Neve) the plugin doesn’t count views anymore. This is happening for 5-6 months, at the beginning I thought was a momentary problem, but at this point I think it will last still.

    This is my debug schedule:

    Plugin Configuration
    
    Performance Nag: Dismissed
    
    Log Limit: No
    
    Log Views From: Everyone
    
    Data Caching: Yes, 1 minute
    
    Data Sampling: No
    
    External object cache: No
    
    WPP_CACHE_VIEWS: No
    
    System Info
    
    PHP version: 7.4.33
    
    PHP extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, mbstring, tokenizer, xml, litespeed, bcmath, dba, dom, enchant, fileinfo, gd, imagick, imap, intl, json, ldap, exif, mcrypt, mysqli, mysqlnd, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, snmp, soap, sockets, sysvmsg, sysvsem, sysvshm, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
    
    Database version: 10.3.37-MariaDB-cll-lve
    
    InnoDB availability: YES
    
    WordPress version: 6.1.1
    
    Multisite: No
    
    Active plugins: Async JavaScript 2.21.08.31, Complianz | GDPR/CCPA Cookie Consent 6.4.1, Elementor 3.11.2, Essential Addons for Elementor 5.6.0, Ivory Search 5.5, LuckyWP Table of Contents 2.1.4, Redirection 5.3.9, Site Kit by Google 1.95.0, W3 Total Cache 2.3.0, WordPress Popular Posts 6.1.1, Yoast SEO 20.2
    
    Theme: Kadence (1.1.31) by Kadence WP

    What can I do to resolve it? This is website’s domain: https://angolodeiperche.it/

    Thank you!

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

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

    (@hcabrera)

    Hi @nevish,

    Just checked your website and I’m not sure what you mean with “it’s not counting visits anymore” since it’s clearly working at the moment:

    (A 201 response, 201 Created, means that WordPress Popular Posts was able to track my visit normally.)

    Am I missing something? If so then I’d appreciate it if you could clarify further.

    Thread Starter nevish

    (@nevish)

    Hi Héctor,

    Thanks for answer! I show you daily recap last week

    As you can see, the plugin usually can’t count views, even if I have 200-250 daily visitors. What can i do?

    • This reply was modified 3 years, 3 months ago by nevish.
    Plugin Author Hector Cabrera

    (@hcabrera)

    Yeah, that’s not normal at all.

    Going from your plugins list, I’d say the first suspect is W3 Total Cache. Maybe the rules / settings you’re using with it are a bit too aggressive? Please have a look at this FAQ for suggestions / recommendations and see if there’s anything you need to tweak on your end: Is WordPress Popular Posts compatible with caching plugins?

    Let me know what your findings are.

    Thread Starter nevish

    (@nevish)

    I’m trying this:

    “When you first install WordPress Popular Posts and after every plugin update, flushing your site’s page cache is highly recommended to make sure that WPP can insert its JavaScript code into your posts and pages correctly.”

    After flushing my site’s page cache the plugin seems work, i’ll update you in 4-5 days if this is the definitivile solution, thanks!

    Plugin Author Hector Cabrera

    (@hcabrera)

    That’s good news! In that case, you should also check this:

    Your caching plugin’s page cache must expire at least once per day (every 12 hours would be best) so WPP can keep track of your post/page views. The reason for this is that WPP uses a security token (or nonces as the WordPress team calls them) to prevent the misuse of the plugin by external actors. Said token expires roughly every 12-24 hours by default and so it’s recommend having your site recreate its page cache every 12 hours in order for WPP to obtain a new security token and do its job as expected. Alternatively –although not really recommended for security reasons– you could also have WordPress Nonces last at least as long as your site’s cache lifetime, that way it won’t be necessary to have your caching plugin regenerate its cache every 12 hours or so.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin doesn’t count views’ is closed to new replies.