[horde] Nag massive fatal error when saving task
Michael J Rubinsky
mrubinsk at horde.org
Mon Nov 23 14:28:18 UTC 2015
Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
> Quoting Michael J Rubinsky <mrubinsk at horde.org>:
>
>> Quoting Louis-Philippe Allard <lp.allard.1 at gmail.com>:
>>
>>> Hello horde maillist,
>>>
>>> since a few upgrades ago , I no longer can create tasks in Nag. The
> form
>>> to input task information launches OK but when I click save, I get a
>>> massive Fatal error of almost 1700 lines! I am not sure when this
>>> started
>>> as I seldomly use Nag but I remember Nag was working just perfectly at
>>> least 3 to 4 months ago.
>>>
>>> Horde is up to date (AFAIK) because running "pear upgrade -a-B
>>> horde/webmail" yields to no update available..
>>>
>>> Due to filesize limitations, the actual fatal error that is displayed
>>> in my
>>> web browser when nag crashes is available on pastebin at the following
>>> address: http://pastebin.com/AT7Nc7zM
>>>
>>> Any help appreciated on how to troubleshoot this. With this and the
>>> Fatal
>>> error I am getting when I click "Reply to All" in an email, I am
> starting
>>> to wonder what will be next...
>>
>> Ok. It looks like the tasklist_id isn't being sent from the form when
>> being saved. This is normal, when there is only one writable tasklist.
>> In this case, we get the tasklist_id from the default_tasklist pref. For
>> some reason, for you, the following block in SaveTask.php:
>>
>> if ($prefs->isLocked('default_tasklist') ||
>> count(Nag::listTasklists(false, Horde_Perms::EDIT,
> false)) <=
>> 1) {
>> $info['tasklist_id'] = $info['old_tasklist'] =
>> Nag::getDefaultTasklist(Horde_Perms::EDIT);
>> }
>>
>> is not being executed like it should, so one of the conditionals there
>> is not evaluating to true. My guess is it's something wrong with your
>> default_tasklist preference. Try visiting Nag's pref page and re-saving
>> it. Otherwise, execute the Nag::listTasklists(false, Horde_Perms::EDIT,
>> false) portion of the code in the horde admin phpshell (under Nag's
>> context) and see what that returns.
>>
>> --
>> mike
>> The Horde Project
>> http://www.horde.org
>> https://www.facebook.com/hordeprojecthttps://www.twitter.com/hordeproject
>
> Hey Michael, I tried going in Nag's settings (Configuration > Nag) and
> resaving them. Same problem. Then I tried to excecute the following PHP
> query under Nag's context (that is, selecting nag in the application
> context dropdown menu):
>
> Nag::listTasklists(false, Horde_Perms::EDIT, false)
>
> But it doesnt return anything.. The query appears under "PHP Code", but
> the "Results" section is empty.
Sorry. I should have specified you need to dump the value i.e.,
var_dump(Nag::listTasklists(false, Horde_Perms::EDIT, false));
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5751 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20151123/3f2fd11a/attachment.bin>
More information about the horde
mailing list