I get this with SQLite when installing the module:

PDOException: SQLSTATE[HY000]: General error: 1 no such function: UNIX_TIMESTAMP: INSERT INTO {user_revision} (uid, vid, log, timestamp, authorid, name, mail, theme, signature, signature_format, status, timezone, language, picture, data) SELECT u.uid, u.vid, '', UNIX_TIMESTAMP(), u.uid, u.name, u.mail, u.theme, u.signature, u.signature_format, u.status, u.timezone, u.language, u.picture, u.data FROM {users} u WHERE u.vid=0 AND u.uid <> 0; Array ( ) in user_revision_enable() (line 41 of ../sites/all/modules/contrib/user_revision/user_revision.module).

This is because SQLite does not know UNIX_TIMESTAMP().

All db_query() calls should be rewritten to use db_select(), db_insert() or something like that.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

czigor’s picture

Status: Active » Needs review
FileSize
10.47 KB
czigor’s picture

Better anonymous user handling.

attiks’s picture

Status: Needs review » Fixed

Thank you very much, fixed

czigor’s picture

Status: Fixed » Active

How has this been fixed? The last commit I see here http://drupalcode.org/project/user_revision.git is from 6 months ago.

attiks’s picture

Status: Active » Fixed

Something went wrong with the push, pushed again and thanks again

czigor’s picture

OK, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.