If you use "manual sort order" in the default photos sort order, then batch manager will, most of the time, throw a "unknown column rank". The rank column must be used to sort photos only if we join with image_category table (which has the rank column...). The $conf['order_by'] should not have any rank in it (from admin/configuration.php):
// there is no rank outside categories
if ( ($i = array_search('rank ASC', $order_by)) !== false)
{
unset($order_by[$i]);
}
BUT since rank became a reserved keyword in MySQL 8, Piwigo has added backticks to rank and of course, the search for rank ASC never works...
If you use "manual sort order" in the default photos sort order, then batch manager will, most of the time, throw a "unknown column rank". The `rank` column must be used to sort photos only if we join with `image_category` table (which has the `rank` column...). The `$conf['order_by']` should not have any `rank` in it (from `admin/configuration.php`):
```
// there is no rank outside categories
if ( ($i = array_search('rank ASC', $order_by)) !== false)
{
unset($order_by[$i]);
}
```
BUT since `rank` became a reserved keyword in MySQL 8, Piwigo has added backticks to `rank` and of course, the search for `rank ASC` never works...
<!-- github-sync-id:1150438912 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
If you use "manual sort order" in the default photos sort order, then batch manager will, most of the time, throw a "unknown column rank". The
rankcolumn must be used to sort photos only if we join withimage_categorytable (which has therankcolumn...). The$conf['order_by']should not have anyrankin it (fromadmin/configuration.php):BUT since
rankbecame a reserved keyword in MySQL 8, Piwigo has added backticks torankand of course, the search forrank ASCnever works...