View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - SQL error in log when connecting - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

SQL error in log when connecting

More
11 Fév 2014 11:03 - 11 Fév 2014 11:05 #1 by lfrugere
Hello,

On a new install (new MySQL database, new installation directory, version 4.1.2 on Unix OS) we have an error in log when connnecting to ProjeQtOr.

2014-02-11 10:44:41 ===== TRACE ===== NEW CONNECTED USER 'xxxxx'
2014-02-11 10:44:43 ***** ERROR ***** Exception-[42S22] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'TestSession.id' in 'where clause'
2014-02-11 10:44:43 ***** ERROR ***** For query : select * from testsession where (exists (select 'x' from assignment x where x.refType='TestSession'
and x.refId=TestSession.id and x.idResource='5')) and idle=0 and done=0 LIMIT 101
2014-02-11 10:44:43 ***** ERROR ***** Strack trace :
2014-02-11 10:44:43 ***** ERROR ***** #0 Sql->query called at [/var/www/projeqtor/model/persistence/SqlElement.php:1285]
2014-02-11 10:44:43 ***** ERROR ***** #1 SqlElement->getSqlElementsFromCriteria called at [/var/www/projeqtor/view/today.php:418]
2014-02-11 10:44:43 ***** ERROR ***** #2 showActivitiesList called at [/var/www/projeqtor/view/today.php:342]
2014-02-11 10:44:43 ***** ERROR ***** #3 showAssignedTasks called at [/var/www/projeqtor/view/today.php:597]
2014-02-11 10:44:43 ***** ERROR ***** Exception-[42S22] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Meeting.id' in 'where clause'
2014-02-11 10:44:43 ***** ERROR ***** For query : select * from meeting where (exists (select 'x' from assignment x where x.refType='Meeting' and x.re
fId=Meeting.id and x.idResource='5')) and idle=0 and done=0 LIMIT 101
2014-02-11 10:44:43 ***** ERROR ***** Strack trace :
2014-02-11 10:44:43 ***** ERROR ***** #0 Sql->query called at [/var/www/projeqtor/model/persistence/SqlElement.php:1285]
2014-02-11 10:44:43 ***** ERROR ***** #1 SqlElement->getSqlElementsFromCriteria called at [/var/www/projeqtor/view/today.php:421]
2014-02-11 10:44:43 ***** ERROR ***** #2 showActivitiesList called at [/var/www/projeqtor/view/today.php:342]
2014-02-11 10:44:43 ***** ERROR ***** #3 showAssignedTasks called at [/var/www/projeqtor/view/today.php:597]

We have disabled every authorization to "Tests" module.

Problem seems to be case sensitive (TestSession.id instead of testsession.id).

With a MySQL client :

mysql> select * from testsession where (exists (select 'x' from assignment x where x.refType='TestSession' and x.refId=TestSession.id and x.idResource='5')) and idle=0 and done=0 LIMIT 101;
ERROR 1054 (42S22): Unknown column 'TestSession.id' in 'where clause'

mysql> select * from testsession where (exists (select 'x' from assignment x where x.refType='TestSession' and x.refId=testsession.id and x.idResource='5')) and idle=0 and done=0 LIMIT 101;
Empty set (0.01 sec)

Regards,

Lionel
Last edit: 11 Fév 2014 11:05 by lfrugere.

Please Connexion or Create an account to join the conversation.

More
11 Fév 2014 14:39 - 11 Fév 2014 14:39 #2 by babynus
Hi,

MySql table names are not case sensitive on Windows, but are on Linux.
You can change this using specific configuration paramter, such as

/my.ini: lower_case_table_names=1


Another workaroung is to disable "Assigned tasks" in Today view.

Last (but not least), you can try patch attached : today.php should be copied in /view folder (replacing existing one, after unzipping)

Babynus
Administrator of ProjeQtOr web site
Attachments:
Last edit: 11 Fév 2014 14:39 by babynus.

Please Connexion or Create an account to join the conversation.

More
14 Fév 2014 18:11 #3 by lfrugere
Thanks,

That works !

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.053 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.