Author Topic: does roundcube works with IIS and MSSQL-Server?  (Read 9588 times)

Offline konus

  • Newbie
  • *
  • Posts: 2
does roundcube works with IIS and MSSQL-Server?
« 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:
  • Windows Server 2008 R2 with IIS 7.5
  • PHP 5.3.13
  • "Microsoft SQL Driver v2.0 for PHP v5.2 in IIS" (installed via Microsoft Web Plattform installer)
  • My connection string is: $rcmail_config['db_dsnw'] = 'sqlsrv://sa:password@server\\instance/database';
  • hMailServer

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.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: does roundcube works with IIS and MSSQL-Server?
« Reply #1 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.

Offline konus

  • Newbie
  • *
  • Posts: 2
Re: does roundcube works with IIS and MSSQL-Server?
« Reply #2 on: June 01, 2012, 08:21:24 AM »
Thank you for the replay. The Tickets are here:
Ticket #1488505 SQL query doesn't work with MS SQL
Ticket #1488506 PHP code issue

Please feel free to rename them, if found a better description.
« Last Edit: June 01, 2012, 08:22:59 AM by konus »