Author Topic: Problems with hmail_password and hmail_spamfilter  (Read 7559 times)

Offline bagu

  • Full Member
  • ***
  • Posts: 109
    • Bagu.biz
Problems with hmail_password and hmail_spamfilter
« on: June 10, 2010, 04:48:35 PM »
Hello,

I have two problem with these plugin :
Code: [Select]
[10-Jun-2010 19:21:16] PHP Fatal error:  Cannot redeclare class hmail_password in E:\services\roundcube\plugins\hmail_password\hmail_password.php on line 212

[10-Jun-2010 19:29:52] MDB2 Error: null value violates not-null constraint (-29): _doQuery: [Error message: Could not execute statement]
[Last executed query: INSERT INTO hm_rule_criterias (criteriaruleid,criteriausepredefined,criteriapredefinedfield,criteriaheadername,criteriamatchtype,criteriamatchvalue)  VALUES('29','0','1','X-hMailServer-Reason-Score','4',NULL)]
[Native code: 1048]
[Native message: Column 'criteriamatchvalue' cannot be null]

So, i can't change the spam detection level and hmail_password fill my log with this when many of my users use it.

Roundcube is 0.4beta
Php 5.2.13
Apache 2.2.15
Mysql 5.1.47
Roundcube database is Innodb
Hmailserver database is Myisam
Hmailserver version is 5.3.3-B1879

Can you help me to correct these bugs ?

Edit : i don't know if it can help, but i have also this error in roundcube error log
Code: [Select]
[10-Jun-2010 22:46:27 +0200]: DB Error: MDB2 Error: constraint violation Query: _doQuery: [Error message: Could not execute statement] [Last executed query: EXECUTE mdb2_statement_mysql_4f29f5e7e1b09d31a3f4d7044a15054285911b7f5 USING @0, @1, @2, @3, @4, @5, @6, @7, @8, @9, @10] [Native code: 1062] [Native message: Duplicate entry '22-INBOX.msg-179851' for key 'uniqueness']  in E:\services\roundcube\program\include\rcube_mdb2.php on line 658 (GET /rm/?_task=mail&_action=get&_uid=179851&_mbox=INBOX&_part=3)

Offline bagu

  • Full Member
  • ***
  • Posts: 109
    • Bagu.biz
Problems with hmail_password and hmail_spamfilter
« Reply #1 on: June 14, 2010, 06:07:42 AM »
No one ?:confused:

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Problems with hmail_password and hmail_spamfilter
« Reply #2 on: June 15, 2010, 12:59:11 AM »
Looks like you use an outdated hmail_password plugin. Recent version ends on line 213. The second error log line does not have to do anything with the hmail_password plugin.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline bagu

  • Full Member
  • ***
  • Posts: 109
    • Bagu.biz
Problems with hmail_password and hmail_spamfilter
« Reply #3 on: June 15, 2010, 06:06:58 AM »
Hmail_password come from your trunk r3649

The second error come from hmail_spamfilter usage (i also can activate spamfilter, but i can't select an other detection level...after i clic on save button, detection level it alway set on very_low)

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Problems with hmail_password and hmail_spamfilter
« Reply #4 on: June 15, 2010, 10:06:50 AM »
#1
This is the recent code of hmail_password.php: hmail_password.php - myroundcube - Project Hosting on Google Code

#2
hmail_spamfilter.php
Please check if you still get the error when changing ...
private $sql_select_rule_criteria = 'SELECT criteriamatchvalue FROM hm_rule_criterias WHERE criteriaruleid=%id';
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline bagu

  • Full Member
  • ***
  • Posts: 109
    • Bagu.biz
Problems with hmail_password and hmail_spamfilter
« Reply #5 on: June 15, 2010, 10:31:47 AM »
#1 I already use this version My file and file on your repository are exactly the same. (winmerge confirm it)

#2 No more problem. The fix work fine.

Thanks.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Problems with hmail_password and hmail_spamfilter
« Reply #6 on: June 15, 2010, 10:35:46 AM »
#1
The error message states that class hmail_password is redeclared. May be you have enabled 'hmail_password' in plugins array twice? No other idea yet.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline bagu

  • Full Member
  • ***
  • Posts: 109
    • Bagu.biz
Problems with hmail_password and hmail_spamfilter
« Reply #7 on: June 15, 2010, 11:47:41 AM »
Ok, that's it.

I had an old config.inc.php merged with the new one...
After reset it, it work without error.

Thanks again.