[#5020] In the event of errors when accessing Chora, there is an issue with the error handling in lib/Chora.php (Patch included)
Summary In the event of errors when accessing Chora, there is an issue with the error handling in lib/Chora.php (Patch included)
Queue Chora
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners Jan Schneider <jan (at) horde (dot) org>
Requester jon (at) spriggs (dot) org (dot) uk
Created 02/22/07 (1119 days ago)
Due
Updated 02/22/07 (1119 days ago)
Assigned
Resolved 02/22/07 (1119 days ago)
Attachments
Milestone
Patch No

History
02/22/07 Jan Schneider Comment #2
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
02/22/07 jon (at) spriggs (dot) org (dot) uk Comment #1
State ⇒ Unconfirmed
Queue ⇒ Chora
Summary ⇒ In the event of errors when accessing Chora, there is an issue with the error handling in lib/Chora.php (Patch included)
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Index: lib/Chora.php

===================================================================

RCS file: /repository/chora/lib/Chora.php,v

retrieving revision 1.85

diff -r1.85 Chora.php

237c237

<             Chora::fatal($e->getMessage());

---
             Chora::fatal('Error', $e->getMessage());
I know this is a little ropey, but it a) highlights the issue to the 
Chora Developers, and b) stops errors from being flagged in 
/var/log/httpd/error_log (example: [Tue Feb 20 22:20:42 2007] [error] 
[client 127.0.0.1] PHP Warning:  Missing argument 2 for 
Chora::fatal(), called in /var/www/html/chora/lib/Chora.php on line 
176 and defined in /var/www/html/chora/lib/Chora.php on line 214, 
referer: http://URL/services/portal/sidebar.php)