6.0.0-beta1
7/8/25

[#11676] IMP and other Apps show "error when communicating with the server" when hooks.php or hooks.local.php exists
Summary IMP and other Apps show "error when communicating with the server" when hooks.php or hooks.local.php exists
Queue Horde Base
Queue Version 5.0.1
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester steffen.hau (at) rz (dot) uni-mannheim (dot) de
Created 11/09/2012 (4624 days ago)
Due
Updated 11/19/2012 (4614 days ago)
Assigned
Resolved 11/09/2012 (4624 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/19/2012 02:50:11 PM steffen (dot) hau (at) rz (dot) uni-mannheim (dot) de Comment #6 Reply to this comment
If I change the sessionhandler from "sql" to "builtin", the error disappears.

As you are ignoring the issue, I'll give up and ask on the 
mailinglist, wether there are others out there with the same issue.. 
Perhaps you will then start looking at that issue.
11/09/2012 01:49:06 PM steffen (dot) hau (at) rz (dot) uni-mannheim (dot) de Comment #5 Reply to this comment
It makes absolutely no difference wether I use hooks.php or 
hooks.local.php, same error. The reason I used local was, that theese 
files won't be overwritten by the next update (as suggested in the 
INSTALL files).

I have taken a look into the webserver logs and have seen some error 500:
ssl-access_log:
134.155.35.13 - - [09/Nov/2012:14:05:37 +0100] "GET 
/imp/dynamic.php?page=mailbox HTTP/1.1" 200 30863
134.155.35.13 - - [09/Nov/2012:14:05:37 +0100] "GET 
/static/e993ccecfd3454c22f296d295325a5f8.css HTTP/1.1" 304 -
134.155.35.13 - - [09/Nov/2012:14:05:37 +0100] "GET 
/static/ac85b6408e105108d76d394724cfddde41ade39c.js HTTP/1.1" 304 -
134.155.35.13 - - [09/Nov/2012:14:05:37 +0100] "GET 
/static/634188a82f10342aea878e200e12af88a769b207.js HTTP/1.1" 304 -
134.155.35.13 - - [09/Nov/2012:14:05:37 +0100] "GET 
/themes/default/graphics/search-topbar.png HTTP/1.1" 304 -
134.155.x.y - - [09/Nov/2012:14:05:38 +0100] "GET 
/imp/themes/default/graphics/reload.gif HTTP/1.1" 304 -
134.155.x.y - - [09/Nov/2012:14:05:38 +0100] "POST 
/services/ajax.php/imp/listMailboxes HTTP/1.1" 500 1475
134.155.x.y - - [09/Nov/2012:14:05:38 +0100] "POST 
/services/ajax.php/imp/viewPort HTTP/1.1" 500 34200

ssl-error_log:
[Fri Nov 09 14:05:37 2012] [error] [client 134.155.x.y] PHP Fatal 
error:  Exception thrown without a stack frame in Unknown on line 0
[Fri Nov 09 14:05:38 2012] [error] [client 134.155.x.y] PHP Fatal 
error:  Exception thrown without a stack frame in Unknown on line 0, 
referer: /imp/dynamic.php?page=mailbox
[Fri Nov 09 14:05:39 2012] [error] [client 134.155.x.y] PHP Fatal 
error:  Exception thrown without a stack frame in Unknown on line 0, 
referer: /imp/dynamic.php?page=mailbox

These error 500 turn into 200, if no hooks file is present. For me it 
looks like a bug, why should I discuss that on a mailing list instead 
of reporting it in a bug tracker system?

Best regards,
Steffen
11/09/2012 01:18:58 PM Jan Schneider Comment #4 Reply to this comment
Try putting it into hooks.php, not hooks.local.php. And again: take 
this to the mailing list.
11/09/2012 12:47:22 PM steffen (dot) hau (at) rz (dot) uni-mannheim (dot) de Comment #3
New Attachment: hooks.local.php Download
Reply to this comment
Without even asking for what I have in my hooks file, you can say that 
there is an error?

I don't agree with you:
- The error is displayed even with an empty hooks.local.php file..
- If the file consists of only a return statement, the error is gone.
- The error starts, when I put a "class Horde_Hooks" in the hooks file 
(the authusername hook gets executed though)

I don't know where the "error when..." is coming from.
11/09/2012 12:30:40 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
You have an error in your hooks.

Please use the mailing list to ask for support.

http://www.horde.org/mail/ contains a list of all available mailing lists.
11/09/2012 11:55:16 AM steffen (dot) hau (at) rz (dot) uni-mannheim (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ IMP and other Apps show "error when communicating with the server" when hooks.php or hooks.local.php exists
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

I need to enable the authusername hook to ensure, that the provided 
usernames are converted to all lower case. If I copy hooks.php.dist to 
hooks.local.php and enable the authusername function, I get 
periodically "Error when communicating with the server" error messages 
in imp and other apps. Removing hooks.local.php "solves" leads to the 
error message no longer showing up.

This happens in openSUSE 11.3 as well as in an Debian unstable.

Best regards,
Steffen

Saved Queries