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

SQL error in log when connecting

More
11 Feb 2014 11:03 - 11 Feb 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 Feb 2014 11:05 by lfrugere.

Please Log in or Create an account to join the conversation.

More
11 Feb 2014 14:39 - 11 Feb 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 Feb 2014 14:39 by babynus.

Please Log in or Create an account to join the conversation.

More
14 Feb 2014 18:11 #3 by lfrugere
Thanks,

That works !

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.032 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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