I have this error (a lot of) in the otrs log :
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 ') AND st.ticket_lock_id IN (2) AND st.user_id IN (1) AND st.until_time <= 13028' at line 1, SQL: 'SELECT DISTINCT count(*) FROM ticket st, queue sq WHERE sq.id = st.queue_id AND st.ticket_state_id IN ( ) AND st.ticket_lock_id IN (2) AND st.user_id IN (1) AND st.until_time <= 1302859662 LIMIT 10000'.
This error apears when i refresh the Dashboard... (or any ticket view i think)
Help me please ! (sorry for my poor english)
[SOLVED]Sql Error
Moderator: crythias
-
- Znuny newbie
- Posts: 6
- Joined: 15 Apr 2011, 11:43
- Znuny Version: 3.0.7
[SOLVED]Sql Error
Last edited by mistermunios on 19 Apr 2011, 14:55, edited 1 time in total.
-
- Znuny newbie
- Posts: 61
- Joined: 17 Dec 2010, 13:22
- Znuny Version: 3.0
Re: Sql Error
What file did you recently change?
And happens this for all users or just your useraccount?
And happens this for all users or just your useraccount?
OTRS 3.0.7 with MySQL on Windows server 2003 r2 server with AD integration for customers.
-
- Znuny newbie
- Posts: 6
- Joined: 15 Apr 2011, 11:43
- Znuny Version: 3.0.7
Re: Sql Error
I make the installation this morning :
i just modifi /Kernel/Language.pm
l 84:
# user language
$Self->{UserLanguage} = 'en' i set 'en' because i have a problem with the default language
|| $Self->{ConfigObject}->Get('DefaultLanguage')
|| 'en';
but return to the default configuration makes no change.
This problem happens with all users.
i just modifi /Kernel/Language.pm
l 84:
# user language
$Self->{UserLanguage} = 'en' i set 'en' because i have a problem with the default language
|| $Self->{ConfigObject}->Get('DefaultLanguage')
|| 'en';
but return to the default configuration makes no change.
This problem happens with all users.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Sql Error
You have no visible state_ids. http://forums.otrs.org/viewtopic.php?f=62&t=8807#p35033
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 6
- Joined: 15 Apr 2011, 11:43
- Znuny Version: 3.0.7
Re: Sql Error
ok thanks for your reply.
I read the topic, but i don't know how to do this.
Why my state_ids are not visible?
I read the topic, but i don't know how to do this.
Why my state_ids are not visible?
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Sql Error
This part:
means that it is looking for Ticket State Ids. It can't find any to sort.
This means:
You've changed the labels for States.
You've changed the state types (labels) that apply to a State or a Dashboard.
What to look for:
States that you've changed the names of (probably due to translation)
State Types that you've changed (probably due to translation)
Visible State Types that you've changed (search System Config)
Code: Select all
AND st.ticket_state_id IN ( )
This means:
You've changed the labels for States.
You've changed the state types (labels) that apply to a State or a Dashboard.
What to look for:
States that you've changed the names of (probably due to translation)
State Types that you've changed (probably due to translation)
Visible State Types that you've changed (search System Config)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 6
- Joined: 15 Apr 2011, 11:43
- Znuny Version: 3.0.7
Re: Sql Error
The problem that i modify any translation file or parameters ...
I resolv my problem directly into the conf file (i'm putting the id directly in the request) but i know that is a horrible way ... when i have more time i try to find the real problem
tanks for your help
I resolv my problem directly into the conf file (i'm putting the id directly in the request) but i know that is a horrible way ... when i have more time i try to find the real problem
tanks for your help