When I'm trying to go to page Tickets > Queueview I get these errors to the log and browser shows "500 Internal Server Error":
Wed Jan 30 15:11:18 2013 error OTRS-CGI-10 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 ')
Wed Jan 30 15:11:18 2013 error OTRS-CGI-10 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 ')
Wed Jan 30 15:11:18 2013 error OTRS-CGI-10 The given param 'StateIDs' is invalid or an empty array reference!
Wed Jan 30 15:11:18 2013 error OTRS-CGI-10 The given param 'StateIDs' is invalid or an empty array reference!
Wed Jan 30 15:11:18 2013 error OTRS-CGI-10 The given param 'StateIDs' is invalid or an empty array reference!
How to fix this?
[Solved] The given param 'StateIDs' is invalid or an empty..
Moderator: crythias
-
- Znuny newbie
- Posts: 14
- Joined: 17 Jan 2013, 09:07
- Znuny Version: 3.1.12
- Real Name: Niklas Lampén
- Company: Aava Kotisivupalvelu
[Solved] The given param 'StateIDs' is invalid or an empty..
Last edited by Niklaus on 31 Jan 2013, 08:48, edited 1 time in total.
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: The given param 'StateIDs' is invalid or an empty array.
Seems as if you may have changed the labelling/spelling of default states.
If not that, you have tickets that have States that no longer exist in the database.
If not that, you have tickets that have States that no longer exist in the database.
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: 14
- Joined: 17 Jan 2013, 09:07
- Znuny Version: 3.1.12
- Real Name: Niklas Lampén
- Company: Aava Kotisivupalvelu
Re: The given param 'StateIDs' is invalid or an empty array.
Yes, I have changed the labels, since I'm using OTRS in Finnish. How can I fix this? Which settings should I set and how?
-
- Znuny newbie
- Posts: 14
- Joined: 17 Jan 2013, 09:07
- Znuny Version: 3.1.12
- Real Name: Niklas Lampén
- Company: Aava Kotisivupalvelu
Re: The given param 'StateIDs' is invalid or an empty array.
And if it helps, I get this:
Copyright (C) 2001-2013 xxx, http://otrs.org/
Unlock old tickets:
DBD::mysql::st execute failed: 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 NOT IN ( 1, 3 )' at line 5 at /opt/otrs-3.2.1/Kernel/System/DB.pm line 618.
ERROR: OTRS-otrs.UnlockTickets.pl-10 Perl: 5.10.1 OS: linux Time: Wed Jan 30 15:39:45 2013
Message: 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 NOT IN ( 1, 3 )' at line 5, SQL: '
SELECT st.tn, st.id, st.timeout, sq.unlock_timeout
FROM ticket st, queue sq
WHERE st.queue_id = sq.id
AND sq.unlock_timeout != 0
AND st.ticket_state_id IN ( )
AND st.ticket_lock_id NOT IN ( 1, 3 ) '
Traceback (25115):
Module: /opt/otrs/bin/otrs.UnlockTickets.pl (v1.14) Line: 115
When trying to run otrs.UnlockTickets.pl.
Copyright (C) 2001-2013 xxx, http://otrs.org/
Unlock old tickets:
DBD::mysql::st execute failed: 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 NOT IN ( 1, 3 )' at line 5 at /opt/otrs-3.2.1/Kernel/System/DB.pm line 618.
ERROR: OTRS-otrs.UnlockTickets.pl-10 Perl: 5.10.1 OS: linux Time: Wed Jan 30 15:39:45 2013
Message: 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 NOT IN ( 1, 3 )' at line 5, SQL: '
SELECT st.tn, st.id, st.timeout, sq.unlock_timeout
FROM ticket st, queue sq
WHERE st.queue_id = sq.id
AND sq.unlock_timeout != 0
AND st.ticket_state_id IN ( )
AND st.ticket_lock_id NOT IN ( 1, 3 ) '
Traceback (25115):
Module: /opt/otrs/bin/otrs.UnlockTickets.pl (v1.14) Line: 115
When trying to run otrs.UnlockTickets.pl.
Re: The given param 'StateIDs' is invalid or an empty array.
please reset everything and just change the translation file
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 14
- Joined: 17 Jan 2013, 09:07
- Znuny Version: 3.1.12
- Real Name: Niklas Lampén
- Company: Aava Kotisivupalvelu
Re: The given param 'StateIDs' is invalid or an empty array.
Thanks that solved it. I used http://doc.otrs.org/3.1/en/html/states-customizing.html as reference (even I'm running 3.2.1).jojo wrote:please reset everything and just change the translation file