6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/11/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11587] PHP Fatal error: Call to a member function setTimezone() on a non-object in /var/www/horde5/kronolith/lib/Kronolith.php on line 407
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..___ __ __ .___ | |[__ / `/ `[__ |__|[___\__.\__.[___
Comment
> This error pops up in syslog when an ics-file is imported. The event > is the first "complicated" looking one in the file. Attached you'll > find the event, that triggered the error. > > If I look around 407, the loop suggests that $next is to become false > eventually, but the 2nd if($convert) ignores that. As workaround I > have added a && $next !== false to it. That seems to work. > > while ($next !== false && $next->compareDate($endDate) <= 0) { > if (!$event->recurrence->hasException($next->year, > $next->month, $next->mday)) { > [snip] > } > if ($convert) { > $next->setTimezone($event->timezone); > } > $next = $event->recurrence->nextRecurrence( > array('year' => $next->year, > 'month' => $next->month, > 'mday' => $next->mday + 1, > 'hour' => $next->hour, > 'min' => $next->min, > 'sec' => $next->sec)); > if ($convert && $next !== false) { > #line 407: > $next->setTimezone($timezone); > } > } >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers