spabla
10-09-08, 06:55 AM
Wondering if anyone has encountered this issue. When creating tasks I am able to create tasks that are of the following access type:
Public
Participant
Protected
Private
But as soon as I try to create a task of access type Privileged I get the following dump on the screen.
ERROR: /var/www/dp/classes/query.class.php(623): query failed(SELECT COUNT(ut.*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.task_id = 6) - error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.ta' at line 1
Backtrace:
0 /var/www/dp/classes/query.class.php:623 dprint('/var/www/dp/classes/query.class.php',623,0,'query failed(SELECT COUNT(ut.*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.task_id = 6) - error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.ta\' at line 1')
1 /var/www/dp/classes/query.class.php:775 exec(1)
2 /var/www/dp/modules/tasks/tasks.class.php:1307 loadResult()
3 /var/www/dp/modules/tasks/tasks.class.php:2282 canAccess('1')
4 /var/www/dp/modules/tasks/tasks.php:640 showtask(array (
0 => '6',
'task_id' => '6',
1 => '6',
'task_parent' => '6',
2 => 'NewPrivTask',
'task_name' => 'NewPrivTask',
3 => '2008-09-09 08:15:00',
'task_start_date' => '2008-09-09 08:15:00',
4 => '2008-09-09 09:15:00',
'task_end_date' => '2008-09-09 09:15:00',
5 => '0',
'task_dynamic' => '0',
6 => NULL,
'task_pinned' => NULL,
7 => NULL,
'pin_user' => NULL,
8 => '0',
'task_priority' => '0',
9 => '0',
'task_percent_complete' => '0',
10 => '1',
'task_duration' => '1',
11 => '1',
'task_duration_type' => '1',
12 => '2',
'task_project' => '2',
13 => NULL,
'task_description' => NULL,
14 => '1',
'task_owner' => '1',
15 => '0',
'task_status' => '0',
16 => 'admin',
'user_username' => 'admin',
17 => '1',
'user_id' => '1',
18 => '0',
'task_milestone' => '0',
19 => 'admin',
'assignee_username' => 'admin',
20 => '1',
'assignee_count' => '1',
21 => 'Admin',
'contact_first_name' => 'Admin',
22 => 'Person',
'contact_last_name' => 'Person',
23 => '0',
'file_count' => '0',
24 => '0',
'task_log_problem' => '0',
'task_assigned_users' =>
array (
0 =>
array (
0 => '1',
'user_id' => '1',
1 => 'admin',
'user_username' => 'admin',
2 => 'admin@localhost',
'contact_email' => 'admin@localhost',
3 => '100',
'perc_assignment' => '100',
4 => '100',
'assign_extent' => '100',
5 => 'Admin',
'contact_first_name' => 'Admin',
6 => 'Person',
'contact_last_name' => 'Person',
),
),
),0,true,false,true)
5 /var/www/dp/style/default/overrides.php:92 require('/var/www/dp/modules/tasks/tasks.php')
6 /var/www/dp/modules/projects/view.php:486 show()
7 /var/www/dp/index.php:299 require('/var/www/dp/modules/projects/view.php')
<\pre>
Fatal error: Call to a member function ErrorMsg() on a non-object in /var/www/dp/classes/query.class.php on line 776
At this point I basicly have to delete the entire project because this msg will display from then on when I try to look at task for the project.
Any help is appreciated. Thanks
Sarvjit
Public
Participant
Protected
Private
But as soon as I try to create a task of access type Privileged I get the following dump on the screen.
ERROR: /var/www/dp/classes/query.class.php(623): query failed(SELECT COUNT(ut.*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.task_id = 6) - error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.ta' at line 1
Backtrace:
0 /var/www/dp/classes/query.class.php:623 dprint('/var/www/dp/classes/query.class.php',623,0,'query failed(SELECT COUNT(ut.*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.task_id = 6) - error was: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'*) AS user_task_count FROM ( `user_tasks` as ut ) WHERE ut.user_id = 1 AND ut.ta\' at line 1')
1 /var/www/dp/classes/query.class.php:775 exec(1)
2 /var/www/dp/modules/tasks/tasks.class.php:1307 loadResult()
3 /var/www/dp/modules/tasks/tasks.class.php:2282 canAccess('1')
4 /var/www/dp/modules/tasks/tasks.php:640 showtask(array (
0 => '6',
'task_id' => '6',
1 => '6',
'task_parent' => '6',
2 => 'NewPrivTask',
'task_name' => 'NewPrivTask',
3 => '2008-09-09 08:15:00',
'task_start_date' => '2008-09-09 08:15:00',
4 => '2008-09-09 09:15:00',
'task_end_date' => '2008-09-09 09:15:00',
5 => '0',
'task_dynamic' => '0',
6 => NULL,
'task_pinned' => NULL,
7 => NULL,
'pin_user' => NULL,
8 => '0',
'task_priority' => '0',
9 => '0',
'task_percent_complete' => '0',
10 => '1',
'task_duration' => '1',
11 => '1',
'task_duration_type' => '1',
12 => '2',
'task_project' => '2',
13 => NULL,
'task_description' => NULL,
14 => '1',
'task_owner' => '1',
15 => '0',
'task_status' => '0',
16 => 'admin',
'user_username' => 'admin',
17 => '1',
'user_id' => '1',
18 => '0',
'task_milestone' => '0',
19 => 'admin',
'assignee_username' => 'admin',
20 => '1',
'assignee_count' => '1',
21 => 'Admin',
'contact_first_name' => 'Admin',
22 => 'Person',
'contact_last_name' => 'Person',
23 => '0',
'file_count' => '0',
24 => '0',
'task_log_problem' => '0',
'task_assigned_users' =>
array (
0 =>
array (
0 => '1',
'user_id' => '1',
1 => 'admin',
'user_username' => 'admin',
2 => 'admin@localhost',
'contact_email' => 'admin@localhost',
3 => '100',
'perc_assignment' => '100',
4 => '100',
'assign_extent' => '100',
5 => 'Admin',
'contact_first_name' => 'Admin',
6 => 'Person',
'contact_last_name' => 'Person',
),
),
),0,true,false,true)
5 /var/www/dp/style/default/overrides.php:92 require('/var/www/dp/modules/tasks/tasks.php')
6 /var/www/dp/modules/projects/view.php:486 show()
7 /var/www/dp/index.php:299 require('/var/www/dp/modules/projects/view.php')
<\pre>
Fatal error: Call to a member function ErrorMsg() on a non-object in /var/www/dp/classes/query.class.php on line 776
At this point I basicly have to delete the entire project because this msg will display from then on when I try to look at task for the project.
Any help is appreciated. Thanks
Sarvjit