Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

DB Error: no such field under CiviCRM 4.7.21 #111

Open
crusonweb opened this issue Sep 15, 2017 · 0 comments
Open

DB Error: no such field under CiviCRM 4.7.21 #111

crusonweb opened this issue Sep 15, 2017 · 0 comments
Assignees

Comments

@crusonweb
Copy link

I have run into an issue under CiviCRM 4.7.21 where the Mail Opened Report returns DB Error: no such field. The problem appears to me to be connected to line 495 in mte.php. That line adds

count(DISTINCT(civicrm_mailing_event_opened.id)) as opened_count

to the query. However in the full query for that report civicrm_mailing_event_opened.id gets assigned to civicrm_mailing_event_opened_id, so the line actually needs to read

count(DISTINCT(civicrm_mailing_event_opened_id)) as opened_count

I tested this doing the query directly on the database and it works and adjusting the mte.php code file fixes the error. However, am I missing a better fix?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants