You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just downloaded Piwigo 2.8.2 to run it in a Docker environment. However, I get mysql errors that look like this:
Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'picsdb.piwigo_images.date_available' which is not in SELECT list; this is incompatible with DISTINCT
SELECT DISTINCT(image_id)
FROM piwigo_image_category
INNER JOIN piwigo_images ON id = image_id
WHERE
category_id = 11
ORDER BY date_available DESC, file ASC, id ASC
; in /scripts/pics.binfalse.de/include/dblayer/functions_mysqli.inc.php on line 832
Fatal error: Uncaught Error: Call to a member function fetch_assoc() on boolean in /scripts/pics.binfalse.de/include/dblayer/functions_mysqli.inc.php:893 Stack trace: #0 /scripts/pics.binfalse.de/include/section_init.inc.php(318): query2array('\nSELECT DISTINC...', NULL, 'image_id') #1 /scripts/pics.binfalse.de/index.php(27): include('/scripts/pics.b...') #2 {main} thrown in /scripts/pics.binfalse.de/include/dblayer/functions_mysqli.inc.php on line 893
The docker environment consists of
an nginx:latest container that mounts the Piwigo sources to /usr/share/nginx/html (ro)
a mysql:latest container, that is linked to the nginx container
a php:fpm container that also knows about the piwigo sources and has mysqli installed
I've just downloaded Piwigo 2.8.2 to run it in a Docker environment. However, I get mysql errors that look like this:
The docker environment consists of
/usr/share/nginx/html
(ro)mysqli
installedWe're talking about this PHP
I've been able to fix the issues by adding the
ORDER BY
elements to theSELECT
list inpiwigo/include/section_init.inc.php
:However, I'm not sure if that's the proper way to go..!?
Do you have any comments? Maybe you want to include the changes to your code base?
The text was updated successfully, but these errors were encountered: