| 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/2007 (450 days ago) |
| Due | |
| Updated | 02/22/2007 (450 days ago) |
| Assigned | |
| Resolved | 02/22/2007 (450 days ago) |
| Attachments | |
| Milestone | |
| Patch |
State ⇒ Resolved
Assigned to Jan Schneider
Fixed in CVS.State ⇒ Unconfirmed
Summary ⇒ In the event of errors when accessing Chora, there is an issue with the error handling in lib/Chora.php (Patch included)
Priority ⇒ 1. Low
Queue ⇒ Chora
Type ⇒ Bug
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)