Seite 1 von 1
SQL error on user save
Verfasst: 22. Jan 2016, 19:58
von TenX
Under User management, click on Create User, fill in Surname, First name, click on Create User button.
User is created and Add user screen opens. Fill in fields under Basic Information and click on Save button.
Following error is generated:
S Q L - E R R O R
CODE: 42000
1066
Not unique table/alias: 'mem_categories'
B A C K T R A C E
FILE: adm_program/system/classes/database.php
LINE: 433
CALL: Database->showError()
FILE: adm_program/modules/profile/roles.php
LINE: 181
CALL: Database->query()
Re: SQL error on user save
Verfasst: 23. Jan 2016, 12:20
von fasse
Hi Tenx,
I could not reproduce this on our
playground.
The sql error sounds strange. Do you have two tables mem_categories in your database or set an alias for that?
Fasse
Re: SQL error on user save
Verfasst: 23. Jan 2016, 15:11
von TenX
Fasse,
There is only one table named as 'mem_categories' and no alias that i am aware of. I have not altered the database as it was first installed with Admidio-Beta, other than change the table prefix from the default 'adm' to 'mem'.
Using local MAMP environment for testing with php 5.4.34
Database server
Server: Localhost via UNIX socket
Server type: MySQL
Server version: 5.5.38 - Source distribution
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)
Web server
Apache
Database client version: libmysql - 5.5.38
PHP extension: mysqli Documentation
See some pictures below of table structure via phpMyAdmin:
https://www.flickr.com/photos/tony_hund ... 558205075/
Re: SQL error on user save
Verfasst: 23. Jan 2016, 22:18
von Offe
Re: SQL error on user save
Verfasst: 23. Jan 2016, 22:30
von fasse
Ups, I forgot it.
This could be the reason why I could not reproduce this
Tomorrow we will release beta 2. Please test with this version.
Fasse
Re: SQL error on user save
Verfasst: 24. Jan 2016, 00:16
von TenX
Will do. Thank you.
Re: SQL error on user save
Verfasst: 24. Jan 2016, 17:02
von TenX
Working in Beta 2. Thanks!