I get the following error when trying to use the [file:total-count] token:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nid' in 'where clause': SELECT totalcount, daycount, timestamp FROM {file_download_counter} WHERE nid = :fid; Array ( [:fid] => 34 ) in file_download_counter_get() (line 103 of xxx/web/modules/contrib/file_download/modules/file_download_counter/file_download_counter.module).
Tiny patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file_download-unknown_column_nid-3110882-1.patch | 727 bytes | WorldFallz |
Comments
Comment #2
WorldFallz commentedhere's the patch.
Comment #3
avpadernoComment #5
NewZeal commentedDeployed in 8.x-1.5