unable to add none admin users mantis 1.2.2 and few other..
Posted: 04 Aug 2010, 14:48
Hello everyone,
Currently I'm having a problem with a new mantis install version 1.2.2 and few other database related issue, first thing first; I'm new to this whole web application setup, please excuse me if I'm not clear on anything i've posted here:
Mantis version 1.2.2
Windows 2003 Standard Edition SP2
IIS 6.0
FastCGI 1.5 for IIS 6.0
MS SQL server driver for PHP 1.1
MS SQL 2005 (9.0.3042)
SQL user with sysadmin rights
I've followed this guide and few other guides to get PHP running using MS WPI. Ran /admin/check.php and no "warning" or "bad" remarks
http://blogs.iis.net/donraman/archive/2 ... ndows.aspx
I couldn't get mantis to connect to MSSQL using $g_db_type = 'mssql' so i opt with 'odbc_mssql' from another post here, which allows mantis installation.
I'm able to create admins but anything below that user level would cause this error:
APPLICATION ERROR #401
Database query failed. Error received from database was #7001: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error for the query: SELECT DISTINCT p.id, p.name
FROM mantis_project_table p
LEFT JOIN mantis_project_user_list_table u
ON p.id=u.project_id AND u.user_id=?
WHERE p.enabled = ? AND
u.user_id IS NULL
ORDER BY p.name.
Clicking on summary page would get this:
APPLICATION ERROR #401
Database query failed. Error received from database was #7001: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error for the query: SELECT b.id, b.date_submitted, b.last_updated, MAX(h.date_modified) as hist_update, b.status
FROM mantis_bug_table b LEFT JOIN mantis_bug_history_table h
ON b.id = h.bug_id AND h.type=0 AND h.field_name='status' AND h.new_value=?
WHERE b.status >=? AND project_id=1
GROUP BY b.id, b.status, b.date_submitted, b.last_updated
ORDER BY b.id ASC.
When clicking on a test issue
APPLICATION ERROR #401
Database query failed. Error received from database was #37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ')'. for the query: SELECT id, name, description FROM mantis_tag_table WHERE id IN ( ) ORDER BY name ASC.
As you can see it's all db connection issue, and with my limited knowledge in SQL I couldn't find any info close to what the error gave me. I've already delete and re-create the database in case there were any fluke the first time. All green during the table creation. Please let me know if any thing I should check in php.ini, config_inc.php.
Thanks in advance!
Wilson
Currently I'm having a problem with a new mantis install version 1.2.2 and few other database related issue, first thing first; I'm new to this whole web application setup, please excuse me if I'm not clear on anything i've posted here:
Mantis version 1.2.2
Windows 2003 Standard Edition SP2
IIS 6.0
FastCGI 1.5 for IIS 6.0
MS SQL server driver for PHP 1.1
MS SQL 2005 (9.0.3042)
SQL user with sysadmin rights
I've followed this guide and few other guides to get PHP running using MS WPI. Ran /admin/check.php and no "warning" or "bad" remarks
http://blogs.iis.net/donraman/archive/2 ... ndows.aspx
I couldn't get mantis to connect to MSSQL using $g_db_type = 'mssql' so i opt with 'odbc_mssql' from another post here, which allows mantis installation.
I'm able to create admins but anything below that user level would cause this error:
APPLICATION ERROR #401
Database query failed. Error received from database was #7001: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error for the query: SELECT DISTINCT p.id, p.name
FROM mantis_project_table p
LEFT JOIN mantis_project_user_list_table u
ON p.id=u.project_id AND u.user_id=?
WHERE p.enabled = ? AND
u.user_id IS NULL
ORDER BY p.name.
Clicking on summary page would get this:
APPLICATION ERROR #401
Database query failed. Error received from database was #7001: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error for the query: SELECT b.id, b.date_submitted, b.last_updated, MAX(h.date_modified) as hist_update, b.status
FROM mantis_bug_table b LEFT JOIN mantis_bug_history_table h
ON b.id = h.bug_id AND h.type=0 AND h.field_name='status' AND h.new_value=?
WHERE b.status >=? AND project_id=1
GROUP BY b.id, b.status, b.date_submitted, b.last_updated
ORDER BY b.id ASC.
When clicking on a test issue
APPLICATION ERROR #401
Database query failed. Error received from database was #37000: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near ')'. for the query: SELECT id, name, description FROM mantis_tag_table WHERE id IN ( ) ORDER BY name ASC.
As you can see it's all db connection issue, and with my limited knowledge in SQL I couldn't find any info close to what the error gave me. I've already delete and re-create the database in case there were any fluke the first time. All green during the table creation. Please let me know if any thing I should check in php.ini, config_inc.php.
Thanks in advance!
Wilson