[chora] chora bug?

Roman Neuhauser neuhauser@bellavista.cz
Mon, 22 Jul 2002 12:14:04 +0200


---------------------- multipart/mixed attachment
> Date: Sat, 20 Jul 2002 15:13:19 -0400
> From: Chuck Hagenbuch <chuck@horde.org>
> To: chora@lists.horde.org
> Subject: Re: [chora] chora bug?
> 
> Quoting Eric Rostetter <eric.rostetter@physics.utexas.edu>:
> 
> > Jul 20 00:06:12 host httpsd: PHP Fatal error:  Call to a member function
> > on a non-object in /path/horde/chora/co.php on line 71
> > 
> > Any modified files I try to look at work fine.  If I add "&p=1" to turn
> > of pretty printing mode, then I can see the 1.1 files.  But with "&p=0"
> > (the default) I get the above error message and an empty (blank) web
> > page...
> 
> Looks like the MIME_Viewer isn't being instantiated correctly - try doing a 
> var_dump($pretty) before that line and see if you get a useful error. Also 
> make sure that all of your mime_drivers.php config files are up to date.

    patch attached

-- 
FreeBSD 4.6-STABLE
12:13PM up 5 days, 22:32, 8 users, load averages: 0.04, 0.03, 0.00

---------------------- multipart/mixed attachment
Index: lib/MIME/Viewer/plain.php
===================================================================
RCS file: /repository/horde/lib/MIME/Viewer/plain.php,v
retrieving revision 1.1
diff -u -r1.1 plain.php
--- lib/MIME/Viewer/plain.php	8 Jul 2002 17:45:41 -0000	1.1
+++ lib/MIME/Viewer/plain.php	22 Jul 2002 10:09:32 -0000
@@ -11,7 +11,7 @@
  * @package horde.mime.viewer
  */
 
-class MIME_Viewer_text extends MIME_Viewer {
+class MIME_Viewer_plain extends MIME_Viewer {
 
     /**
      * Render out the currently set contents in HTML format. The

---------------------- multipart/mixed attachment--