Roundcube Community Forum

Release Support => Pending Issues => Topic started by: TRex2003 on July 25, 2008, 06:48:11 AM

Title: html2text not working
Post by: TRex2003 on July 25, 2008, 06:48:11 AM
Hi there,

I installed the new version of roundcube and it tells me the following, when I try to convert from HTML to text:

QuoteFatal error:  Class 'html2text' not found in /var/www/roundcube/bin/html2text.php on line 6

The bugreport is VERY useful..."worksforme".... :rolleyes:

http://trac.roundcube.net/ticket/1485138

Can anyone tell me, what to do here? Whats wrong in PHP config? I am using PHP5.
Title: html2text not working
Post by: JSkywalker on July 25, 2008, 11:40:17 AM
this bug was closed 5 weeks ago ....
probably because it is not a bug, but some kind of misconfigured installation.

1) what kind of server is your installation running on?
2) do you have thest 2 files on your server?
./bin/html2text.php
./program/lib/html2text.php
Title: html2text not working
Post by: TRex2003 on July 25, 2008, 12:02:07 PM
1) Debian etch, PHP5, Apache 2, what else?
2) yep...
Title: html2text not working
Post by: JSkywalker on July 25, 2008, 01:20:41 PM
hmm, maybe you have to clear the cache of your browser....
Title: php5-cgi
Post by: tjm74 on August 07, 2008, 01:13:56 PM
Same problem.

my php5 is installed as php5-cgi -- /usr/bin/php is still php4 for some very good reasons.

is this being invoked with /usr/bin/php ?  if so, how can I help it to locate a php5 binary?
Title: autoload failing on html2text
Post by: tjm74 on August 10, 2008, 01:16:37 PM
Well, I traced the call and realized it can't be my php4 since it's definitely calling html2text.php over the web which is hitting php5 -- but for some reason the autoload just doesn't work.

Rather than pull my hair out trying to figure that out, I just bypassed autoload and required the appropriate file directly.

in bin/html2text.php

at line 6 (Before the line $converter = ...) add this to get it working:

// autoload not working? had to add this line.
require INSTALL_PATH.'program/lib/html2text.php';
Title: html2text not working
Post by: Kias on December 20, 2008, 09:46:55 AM
Had the same problem here.  
Adding this line seems to have fixed it.

Thanks!
Title: html2text not working
Post by: rosali on December 21, 2008, 02:54:28 AM
Problem is fixed in SVN trunk.