<![CDATA[ Modx Gallery doesn't show images in manager view - My Forums]]> https://forums.modx.com/thread/?thread=104427 <![CDATA[Modx Gallery doesn't show images in manager view]]> https://forums.modx.com/thread/104427/modx-gallery-doesn-t-show-images-in-manager-view#dis-post-561689
I have Gallery 1.7.1-pl and MODX Revolution 2.6.5-pl installed, Ubuntu 18.04 and MySQL 8.0 if it matters.

So, I've successfully installed Gallery and can upload files, but they do not show up in album view. "No files match the specified filter."

I've double checked that files do exist in file manager and correctly shown in assets/gallery

ModX Error log shows the following line when I open the album page in manager:

[2018-09-21 18:43:18] (ERROR @ /usr/share/nginx/artroilencom/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC LIMIT 20' at line 4
)
This line is for error debug information, nothing to do with the error itself.]]>
roilen Sep 21, 2018, 07:14 PM https://forums.modx.com/thread/104427/modx-gallery-doesn-t-show-images-in-manager-view#dis-post-561689
<![CDATA[Re: Modx Gallery doesn't show images in manager view (Best Answer)]]> https://forums.modx.com/thread/104427/modx-gallery-doesn-t-show-images-in-manager-view#dis-post-563491
The problem is in core/components/gallery/processors/mgr/item/getlist.class.php

Line 10:

public $defaultSortField = rank';


There is no rank field, so you need to change the line to:

public $defaultSortField = AlbumItems.rank';


Et voila! Hope this helps someone...]]>
roilen Jan 09, 2019, 01:07 PM https://forums.modx.com/thread/104427/modx-gallery-doesn-t-show-images-in-manager-view#dis-post-563491
<![CDATA[Re: Modx Gallery doesn't show images in manager view]]> https://forums.modx.com/thread/104427/modx-gallery-doesn-t-show-images-in-manager-view#dis-post-561804
In the meanwhile try rolling back your mySQL version.

]]>
aaronkent Sep 28, 2018, 07:06 PM https://forums.modx.com/thread/104427/modx-gallery-doesn-t-show-images-in-manager-view#dis-post-561804