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.

Comments

WorldFallz created an issue. See original summary.

WorldFallz’s picture

here's the patch.

avpaderno’s picture

Status: Active » Needs review

  • New Zeal committed 19accb3 on 8.x-1.x authored by WorldFallz
    Issue #3110882 by WorldFallz: Column not found: 1054 Unknown column 'nid...
NewZeal’s picture

Status: Needs review » Fixed

Deployed in 8.x-1.5

Status: Fixed » Closed (fixed)

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