IMP 2.3.7-cvs: mime viewer error.

Joris Braakman jorisb@nl.euro.net
Wed, 18 Jul 2001 13:12:25 +0200


Hi,

I had IMP 2.3 setup and working but when I update from cvs today I got a
error. I have synced all the config files from .dist. I can login and
see a list of messages, but when I click on a message I get the following
error. 

I can not find text.php anywhere. Is it forgotten to be checked into
cvs?

Warning: Failed opening
'/usr/local/apache/htdocs/horde/config/../imp/lib/MIME/Viewer/text.php'
for inclusion
(include_path='.:/php/includes:/usr/local/php4/phplib:/usr/local/php4/pear')
in /usr/local/apache/htdocs/horde/lib/MIME/Viewer.php
on line 54

Fatal error: Cannot instantiate non-existent class: imp_mime_viewer_text
in /usr/local/apache/htdocs/horde/lib/MIME/Viewer.php
on line 57

I can remove this error by hardcoding the path in Viewer.php and creating
a simple viewer by copying default.php to text.php and modify that, but
the text is then unformatted.

Viewer.php
- return $registry->applications[$app]['fileroot'] .  "/lib/MIME/Viewer/$driver.php";
+ return $registry->applications['horde']['fileroot'] .  "/lib/MIME/Viewer/$driver.php";

text.php
-class MIME_Viewer_default extends MIME_Viewer {
+class imp_mime_viewer_text extends MIME_Viewer {


Regards, Joris.