1

Topic: Error: unsupported operand type(s) for -: 'unicode' and 'int'

======== Required information ====
- iRedMail version: iRedMail-0.9.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apapche
- Linux/BSD distribution name and version: Centos 7.1
- Related log if you're reporting an issue: so far none.
====

Hi ZHB and Guys,

I have been with iredmail from the inception, still have servers in Production on LDAP DB. I recently did a fresh new setup with MySQL and find this error :

Error: unsupported operand type(s) for -: 'unicode' and 'int'

This happens when i have to jump to page 2 since i have a bit more users under a domain (just over 100), either i click the little arrow to go on the next page or actually the numeral 2, the above error occurs.

i Checked in apache's log files, nothing showing up.

i think its to do with python, somewhere in the code there needs a little change.

Just a heads up, its not service affecting BUT domains with a lot of users require to use the search function.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Error: unsupported operand type(s) for -: 'unicode' and 'int'

Dear Rein,

This is a known bug in IRedAdmin-Pro-SQL-2.0 and was fixed, the fix will be available in upcoming release.

3

Re: Error: unsupported operand type(s) for -: 'unicode' and 'int'

thanks Zhang.