[kronolith] Add/Delete event throws error
Graeme Fowler
graeme at graemef.net
Fri Apr 8 04:47:04 PDT 2005
Kronolith CVS HEAD (checked out this morning)
Horde 3.0.3
If I create or delete an event, with myself as sole attendee *or* with
additional attendees, committing the event or confirming deletion throws an
error like the one following (this from a deletion):
Warning: Illegal offset type in $PATH/horde/kronolith/lib/Kronolith.php on line
1081
Warning: Illegal offset type in $PATH/horde/kronolith/lib/Kronolith.php on line
1082
Warning: Cannot modify header information - headers already sent by (output
started at $PATH/horde/kronolith/lib/Kronolith.php:1081) in
$PATH/horde/kronolith/deleventaction.php on line 77
Adding in a debug log statement immediately prior to that bit of code like this:
foreach ($share->listGroups(PERMS_READ) as $group) {
foreach ($groups->listAllUsers($group) as $user) {
+++ Horde::logMessage(sprintf('Group: %s, User: %s, Calendar %s,
recipients: %s', $group, $user, $calendar, $recipients[$user]), __FILE__,
__LINE__, PEAR_LOG_DEBUG);
if (!isset($recipients[$user])) {
$recipients[$user] = Kronolith::_notificationPref($user,
'read', $calendar);
}
}
}
...results in the following:
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: , Calendar graeme,
recipients: [on line 1081 of "$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: 1, Calendar graeme,
recipients: [on line 1081 of "$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: 1024, Calendar graeme,
recipients: [on line 1081 of "$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: , Calendar graeme,
recipients: [on line 1081 of "$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: 1 does not exist,
Calendar graeme, recipients: [on line 1081 of
"$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: , Calendar graeme,
recipients: [on line 1081 of "$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: Array, Calendar
graeme, recipients: [on line 1081 of
"$PATH/horde/kronolith/lib/Kronolith.php"]
Apr 08 12:38:27 HORDE [debug] [kronolith] Group: 1, User: , Calendar graeme,
recipients: [on line 1081 of "$PATH/horde/kronolith/lib/Kronolith.php"]
I have no groups defined at all. Something tells me, from looking at these
errors, that while it loops it's finding an array instead of a string in the
$user variable and that's making it chuck a wobbly.
Anyone else seeing anything similar? Can I post anything else to help?
For the record, the event gets added correctly and deleted correctly.
Graeme
More information about the kronolith
mailing list