6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12104] Nag throwing PHP error
*
Your Email Address
*
Spam protection
Enter the letters below:
\ /.__..__ .__ . . >< [__][ __[__)\ / / \| |[_./| \ \/
Comment
>> I don't see this. I am successfully syncing calendar/contacts/tasks/email. >> >> What is the value being passed to array_flip()? You can try re-saving >> Nag's synchronization prefs via the UI, perhaps it got corrupted >> somehow? > > Hi, > are you using tasks while syncing? I re-saved the prefs, it doesn't > help so I investigated the error a bit: > > > the mentioned error message is caused in horde/nag/lib/Nag.php in line 1603. > > this line is located in the function "static public function getSyncLists()" > The first line festes the prefs an serializes the value: > $cs = unserialize($GLOBALS['prefs']->getValue('sync_lists')); > > The returned array contains usually some content: > Array > ( > [0] => or6rhw_UzWWoM8q5BrkCVA1 > ) > > But sometimes it does not: > Array > ( > [0] => > ) > > As far as I know, the latter is not an empty array according to PHP > definition, so the following "if (!empty($cs)) "fails. > > The above array is created by the function unserialize. > A debug revealed that "$GLOBALS['prefs']->getValue('sync_lists')" > does not reveal always a value. So unserialize (btw: in which file is > that unserialize function located?) should be fixed to return a > proper emtpy value if the input is NULL. > > Thanks, > Torben > > > >
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