Opening course gives "Error reading from database" after 2.7 > 3.5 upgrade

Re: Opening course gives "Error reading from database" after 2.7 > 3.5 upgrade

by Céline Perves -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello,

a way to correct this error is to correct the request  in the data_num_contributions function of theme/adaptable/classes/activity.php by add ing a group by d.id

SELECT d.id, count(dataid) as total FROM {data_records} r, {data} d
WHERE r.dataid = d.id AND r.dataid = :dataid group by d.id';