Skip to content

Conversation

@icsbcn
Copy link

@icsbcn icsbcn commented Feb 20, 2019

When you try to import and execute this xml report in a Moodle 3.5.2 an error appears:

Debug info: ERROR: column "c.fullname" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT COUNT(l.id) hits, l.course courseId, c.fullname cours...
^
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename
FROM mdl_log l INNER JOIN mdl_course c ON l.course = c.id
GROUP BY courseId
ORDER BY hits DESC LIMIT 5000
[array (
)]
Error code: dmlreadexception

With this change, error is solved.

When you try to import and execute this xml report in a Moodle 3.5.2 an error appears: 

Debug info: ERROR: column "c.fullname" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: SELECT COUNT(l.id) hits, l.course courseId, c.fullname cours...
^
SELECT COUNT(l.id) hits, l.course courseId, c.fullname coursename
FROM mdl_log l INNER JOIN mdl_course c ON l.course = c.id
GROUP BY courseId
ORDER BY hits DESC LIMIT 5000
[array (
)]
Error code: dmlreadexception 

With this change, error is solved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant