Trying to access File Manager leads to an error
My customer notified me about some issue on their site: when they are trying to access File Manager it gives the following error:
mysql error: [3065: Expression #1 of ORDER BY clause is not in SELECT list, references column 'vanhaonk_crt.f.fDateAdded' which is not in SELECT list; this is incompatible with DISTINCT] in EXECUTE("SELECT DISTINCT f.fID, u.uName as fvAuthorName FROM Files f INNER JOIN FileVersions fv ON f.fID = fv.fID LEFT JOIN Users u on u.uID = fv.fvAuthorUID left join FileSearchIndexAttributes on (fv.fID = FileSearchIndexAttributes.fID) where 1=1 and fvIsApproved = '1' order by fDateAdded desc limit 0,10 ")
How can i fix this? Version 126.96.36.199. Thanks.
I just ran that sql on one of my development sites using concrete188.8.131.52 and it ran successfully, so maybe an issue with mysql on your hosts server?
I would consider doing an incremental upgrade to 184.108.40.206 and maybe switch to PHP7...