wallacepos icon indicating copy to clipboard operation
wallacepos copied to clipboard

SQLSTATE[42000]: Syntax error or access violation

Open cheve opened this issue 8 years ago • 14 comments

To acces admin account display this message:

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'wallacepos.i.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

It allows changes to the settings but does not add Locations & Devices.

Run new version wallacepos in: Lubuntu 16.04 LTS Kernel Linux 4.4.0-21-generic (i686) Apache/2.4.18 (Ubuntu) MySQL 5.7.12-0ubuntu1 PHP: 7.0.4-7ubuntu2

Excuse me work that I am generating ;-) Thanks.

cheve avatar Apr 26 '16 09:04 cheve

If you’ve recently upgraded your MySQL server version to MySQL 5.7.5+ and you notice that some of your queries that contain GROUP BY clause, suddenly stop working, then it could be because of a change that was made in MySQL 5.7.5+. FAQ sql modes

Remove mode "only_full_group_by" from sql_mode. To acces admin account display this message: stime must be numeric etime must be numeric

It allows changes to the settings but does not add Locations & Devices.

I go good path??? Thanks...

cheve avatar Apr 26 '16 22:04 cheve

modifycate and new message of error, modifycate and new message of error I think we will have to revert to earlier versions of SQL. I return to ubuntu 14.04 LTS

cheve avatar Apr 27 '16 07:04 cheve

thanks for indicating, I may try out on xampp with mysql 5.7.7 onwards to see the effect...

ais-one avatar Apr 27 '16 12:04 ais-one

Wallacepos working without problems in Ubuntu 14.04.4 LTS and Ubuntu 15.10. Early to Ubuntu 16.04

Bufff ais-one!!! Dependencias, clausulas, columnas, violaciones... I lost. Thanks.

cheve avatar Apr 27 '16 13:04 cheve

I'll likely be moving infrastructure to 16.04 in the near future and will look at the issue.

micwallace avatar Apr 30 '16 05:04 micwallace

Can confirm that changes in mysql 5.7 caused this issue.

micwallace avatar Apr 30 '16 06:04 micwallace

I can download 16.04 on virtual box and try it out later.

ais-one avatar Apr 30 '16 07:04 ais-one

Yes, it seems that update to MySQL 5.7 cause this problem. Other applications also have problems after update to SQL 5.7. ChromisPos for example. Wallacepos working without problems in Ubuntu 14.04.4 LTS and Ubuntu 15.10.

Ubuntu 14.04 LTS Apache 2.4.7 MYSQL 5.5.49 PHP 5.5.9

Ubuntu 15.10 Apache 2.4.12 MYSQL 5.6.30 PHP 5.6.11

Ubuntu 16.04 LTS Apache 2.4.18 MySQL 5.7.12 PHP: 7.0.4

Thanks

cheve avatar May 01 '16 00:05 cheve

eae6ec4 should fix this issue, although I have not yet tested on mysql 5.7

micwallace avatar May 14 '16 04:05 micwallace

I hope Orange pi II Plus to install ubuntu 16 LTS. We will test with modifications.

Thank you.

cheve avatar May 19 '16 21:05 cheve

Hi. It is not stable ubuntu 16 in orange pi + 2. A try debian 8.5

cheve avatar Sep 17 '16 06:09 cheve

As a temp fix you can remove mysql_full_group_by from sql mode:

stackoverflow.com/questions/23921117/disable-only-full-group-by

micwallace avatar Nov 30 '16 13:11 micwallace

I'm also getting the same error after successfully updating to version 1.4.1.

epiqueras avatar Jan 27 '17 20:01 epiqueras

Yes you still need to disable only_full_group_by in mysql.

micwallace avatar Jan 28 '17 00:01 micwallace

Hacer:

$ sudo nano /etc/mysql/my.cnf Copiar y pegar:

[mysqld] sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION Al final del archivo

$ sudo service mysql restart

Aún así saldrán nuevos problemas. Así que lo conveniente es instalar una versión más antigua de Ubuntu y mysql.

darrenarauz21 avatar Aug 08 '21 22:08 darrenarauz21