| Summary | Fatal error in IMP::parseIndicesList method (Unsupported operand types) |
| Queue | IMP |
| Queue Version | 4.1.3 |
| Type | Bug |
| State | Resolved |
| Priority | 1. Low |
| Owners | jan (at) horde (dot) org |
| Requester | asmarre (at) ull (dot) es |
| Created | 6/30/08 (6493 days ago) |
| Due | |
| Updated | 6/30/08 (6493 days ago) |
| Assigned | |
| Resolved | 6/30/08 (6493 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
Assigned to Jan Schneider
State ⇒ Resolved
The code I pasted in this comment has been already patched, the
original code follows. I also forgot to put the filename: lib/IMP.php
} else {
/* We are dealing with format
#2. */foreach ($indices as $key => $val) {
if ($GLOBALS['imp_search']->isSearchMbox($key)) {
$msgList += IMP::parseIndicesList($val);
} else {
/* Make sure we don't have any duplicate keys. */
$msgList[$key] = is_array($val) ?
array_unique($val) : array($val);
}
}
}
Priority ⇒ 1. Low
New Attachment: imp_indices.diff
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Fatal error in IMP::parseIndicesList method (Unsupported operand types)
Type ⇒ Bug
State ⇒ Unconfirmed
Some users complain about an error that appears when they reply an email:
Fatal error: Unsupported operand types in
/usr/share/horde3/imp/lib/IMP.php on line 1143
My guess is that the recursive call in the line 1143 sometimes return
false and then the + operation fail:
} else {
/* We are dealing with format
#2. */foreach ($indices as $key => $val) {
if ($GLOBALS['imp_search']->isSearchMbox($key)) {
$res = IMP::parseIndicesList($val);
if ($res) $msgList += $res;
} else {
/* Make sure we don't have any duplicate keys. */
$msgList[$key] = is_array($val) ?
array_unique($val) : array($val);
}
}
}
I attach a patch.