Roundcube Community Forum

Release Support => Pending Issues => Topic started by: konus on May 31, 2012, 10:11:48 AM

Title: does roundcube works with IIS and MSSQL-Server?
Post by: konus on May 31, 2012, 10:11:48 AM
Hello,
I try to use Roundcube on a Windows Server and get the following error: the data types text and varchar are incompatible in the boolean and operator

My configuration:

The error after opening my (still empty) addressbook:
Quote[31-May-2012 13:24:03 UTC] PHP Parse error:  syntax error, unexpected T_STRING in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(785) : eval()'d code on line 1
[31-May-2012 13:24:03 UTC] PHP Parse error:  syntax error, unexpected T_STRING in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(785) : eval()'d code on line 1
[31-May-2012 13:24:03 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(785) : eval()'d code on line 1
[31-May-2012 13:25:46 UTC] PHP Parse error:  syntax error, unexpected T_STRING in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(785) : eval()'d code on line 1
[31-May-2012 13:25:46 UTC] PHP Parse error:  syntax error, unexpected T_STRING in C:\inetpub\wwwroot\roundcube\program\include\rcube_template.php(785) : eval()'d code on line 1
[31-May-2012 13:25:46 UTC] MDB2 Error: unknown error (-1): _doQuery: [Error message: Could not execute statement]
[Last executed query: SELECT TOP 40 * FROM contacts AS c WHERE c.del<>1 AND c.user_id=2 ORDER BY (c.surname + c.firstname + c.name + c.email) ASC]
[Native code: 402]
[Native message: SQLState: 42000
Error Code: 402
Message: [Microsoft][SQL Server Native Client 11.0][SQL Server]Die Datentypen varchar und text sind im add-Operator inkompatibel.

As a result, it looks like I can't save new contacts.
Title: Re: does roundcube works with IIS and MSSQL-Server?
Post by: alec on May 31, 2012, 04:18:39 PM
I see two issues here. One is SQL query which doesn't work with MS SQL. The second is PHP code issue. Please, open (separate) tickets in bugtracker, we'll try to find a solution.
Title: Re: does roundcube works with IIS and MSSQL-Server?
Post by: konus on June 01, 2012, 08:21:24 AM
Thank you for the replay. The Tickets are here:
Ticket #1488505 (http://trac.roundcube.net/ticket/1488505) SQL query doesn't work with MS SQL
Ticket #1488506 (http://trac.roundcube.net/ticket/1488506) PHP code issue

Please feel free to rename them, if found a better description.