Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since I updated to counter module 6.x-2.16 about three weeks ago the "new visitor counter" stops counting new visitors . The site counter works fine. Does anybody has the same problem?
Comments
Comment #1
steeph CreditAttribution: steeph commentedYes, same problem here. I wasn't sure if it was an update or due to something else, because I migrated my site to a different server and updated some modules at the same time. Installing an older version of the Counter module doesn't help thou.
Comment #2
steeph CreditAttribution: steeph commentedOK, after installing 2.14 and updating to 2.16 again two times it works for me. I don't know what went wrong the first and second time. Don't forget to run update.php.
Comment #3
Quillz CreditAttribution: Quillz commentedI've just installed counter 2.16 - no previous versions installed - and I am encountering this problem too.
Comment #4
drupalnesia CreditAttribution: drupalnesia commentedPlease try newer 6.x, e.g: 6.x-2.23 and report again if you still face this issue.
Comment #5
holydrupal CreditAttribution: holydrupal commentedI have the same issue with 6.x-2.23.
and also the published nodes counter does not update when I add new node.
Have you encounter these issues?
Comment #6
andrey-sw CreditAttribution: andrey-sw commentedSorry for my english.
The problem, in my view, is related to the code of counter.module line 120-132
is a corrected version for quick solutions
first time after installation of variable counter_lastdate not initialized, and $interval always zerro
Comment #7
drupalnesia CreditAttribution: drupalnesia commentedUsing new installation of 6.x-2.23, I can not reproduce this bug.
@andrey-sw:
- the code should be
$counter_lastdate = variable_get('counter_lastdate', date('Y-m-d H:i:s', time()));
Drupal variable_get will get value from second argument if variable not yet set.
Comment #8
EvilGenius CreditAttribution: EvilGenius commentedI have the same issue, but with version 7.x-1.0-alpha7. alpha6 also had this issue...
Comment #9
drupalnesia CreditAttribution: drupalnesia commented@EvilGenius:
by default Counter only refresh its value after 10 seconds (you can change this in Advanced Counter Settings). Try to wait 10 seconds then refresh, also try to clear the Drupal cache. Please report if the Unique Visitors still not counting. Thanks.
Comment #10
Teeman CreditAttribution: Teeman commentedI'm having the same problem with 7.x-1.0-alpha7, also tried alpha6 on the same site and had the same problem. Clearing the cache didn't change anything.
Comment #11
EvilGenius CreditAttribution: EvilGenius commentedStill not counting with 7.x-1.0-alpha7. Clearing cache, running cron, nothing works.
Hope you can help, do I need to open a new ticket?
Comment #12
drupalnesia CreditAttribution: drupalnesia commented7.x-1.0-alpha8: Bug fix: Wrong SQL command for PostgreSQL
7.x-1.0-beta1: New: Views integration
7.x-1.0-beta2: New: Save uid, nid, type, browser name, browser version, platform
Please open new ticket if still error,