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.
Running the roles audit (drush audit_roles) on any Drupal 7 site fails with a fatal error: Column not found: 1054 Unknown column 'uid' in 'field list''.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2804779-role_audit_fatal-1.patch | 640 bytes | rbayliss |
Comments
Comment #2
rbayliss CreditAttribution: rbayliss at Last Call Media commentedI think this should do the trick.
Comment #3
junaidpvYes, there is no uid field in both table in query! Happened in this commit: http://cgit.drupalcode.org/site_audit/commit/?id=0369ed5eb4e145c7744302c0635fa6f2d3cd7e95
Comment #4
vagelis-prokopiou CreditAttribution: vagelis-prokopiou as a volunteer commentedThe patch works as expected. Output of
drush audit_roles
on a fresh install:Comment #5
socketwench CreditAttribution: socketwench as a volunteer commentedThis appears to be fixed in another issue, since the current line is now:
$sql_query .= ', COUNT({role}.rid) AS count_permissions ';