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.
Getting SQLSTATE[42S22]: Column not found: 1054 Unknown column 'IF1319394268MAXsessions.timestamp900101' in 'having clause' when activating/editing the view 'user_stats_online_users_pictures'. I then try to enable the block anyway, but it doesn't show up on the site. Everything else on my D7 install is working without problems.
Thanks for a great module BTW! Very important to our site. Looking forward to the next dev/alpha/beta/rc of User Stats for D7.
Comments
Comment #1
thomas1977 CreditAttribution: thomas1977 commentedSeems to be some kind of problem with a unix timestamp contained in a database table... Not even sure this has got something to do with User Stats...? (even though the view 'user_stats_online_users_pictures', I believe, was created upon User Stats module installation...
Comment #2
thomas1977 CreditAttribution: thomas1977 commentedOk, it seems User Stats is to blame on this, since the field 'User: Is online' is provided by User Stats (and not by Views/core).
Comment #3
thomas1977 CreditAttribution: thomas1977 commentedStill having this issue. Does anyone happen have any idea what might be the solution here?
Comment #4
RodrigoNP CreditAttribution: RodrigoNP commentedat line 31 of views/views_handler_filter_is_online.inc , replace:
$this->query->add_having($this->options['group'], $sql);
with:
$this->query->add_having_expression($this->options['group'], $sql);
Comment #5
jenna1 CreditAttribution: jenna1 commentedthanks, RodrigoNP, worked perfect with Views and is online field.
I have two days searching for the error and have just found your patch, great, many thanks, Jenna.
Comment #6
thomas1977 CreditAttribution: thomas1977 commentedIs this basically a Views or a User stats problem? If user stats problem: are we going to see an update to the module?
Comment #7
fraweg CreditAttribution: fraweg commentedHello,
I have also MYSQL-problems with the onlinestatus in views. The fix from "#4" help me. Thanks @ RodrigoNP . I hope this fix goes into the dev-version. I dont want to fix it anytime when I upgrade the version.
Thanks for your work in this Module
Frank
PS. My System: Linux 11.04,Drupal 7.12
Comment #8
NathanM CreditAttribution: NathanM commentedThanks for the fix here. Also hope this gets committed to the dev version.