Seems like there are a lot of problems with the Piwigo code and mysql 5.7.11. Everything was working fine before I upgraded from Fedora 23 to Fedora 24 and everything seems to point to the MySQL version being the problem.
Here's the first error that appears on most pages.:
Warning: [mysql error 3065] Expression #1 of ORDER BY clause is not in SELECT list, references column 'piwigo.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 = 1
ORDER BY date_available DESC
; in /piwigo/include/dblayer/functions_mysqli.inc.php on line 832
Fatal error: Call to a member function fetch_assoc() on boolean in /piwigo/include/dblayer/functions_mysqli.inc.php on line 893
When I use set sql_mode="" I then get the following error:
Warning: [mysql error 1146] Table 'performance_schema.session_variables' doesn't exist
SHOW VARIABLES LIKE 'max_allowed_packet' in /piwigo/include/dblayer/functions_mysqli.inc.php on line 832
Fatal error: Call to a member function fetch_row() on boolean in /piwigo/include/dblayer/functions_mysqli.inc.php on line 218
These are critical errors, making the photo gallery completely unusable. Any help would be appreciated.
Thanks,
Vern
Fedora 24
Piwigo version: 2.8.1
PHP version: 5.6.22
MySQL version: 5.7.11
Piwigo URL:
http://vw.homelinux.net/z