[SOLVED]Sql Error

Moderator: crythias

Locked
mistermunios
Znuny newbie
Posts: 6
Joined: 15 Apr 2011, 11:43
Znuny Version: 3.0.7

[SOLVED]Sql Error

Post by mistermunios »

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)
Last edited by mistermunios on 19 Apr 2011, 14:55, edited 1 time in total.
thomkortekaas
Znuny newbie
Posts: 61
Joined: 17 Dec 2010, 13:22
Znuny Version: 3.0

Re: Sql Error

Post by thomkortekaas »

What file did you recently change?

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.
mistermunios
Znuny newbie
Posts: 6
Joined: 15 Apr 2011, 11:43
Znuny Version: 3.0.7

Re: Sql Error

Post by mistermunios »

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.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Sql Error

Post by crythias »

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
mistermunios
Znuny newbie
Posts: 6
Joined: 15 Apr 2011, 11:43
Znuny Version: 3.0.7

Re: Sql Error

Post by mistermunios »

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?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Sql Error

Post by crythias »

This part:

Code: Select all

 AND st.ticket_state_id IN ( )
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)
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
mistermunios
Znuny newbie
Posts: 6
Joined: 15 Apr 2011, 11:43
Znuny Version: 3.0.7

Re: Sql Error

Post by mistermunios »

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
Locked