Roundcube Community Forum

 

html2text not working

Started by TRex2003, July 25, 2008, 06:48:11 AM

Previous topic - Next topic

TRex2003

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.

JSkywalker

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
JSkywalker

Dovecot 1.1.1 - Postfix 2.3.2 - Roundcube 0.2a - Opensuse 10.2
Apache 2.2.3 - Php 5.2.6 - Mysql 5.0.26[/SIZE]

TRex2003

1) Debian etch, PHP5, Apache 2, what else?
2) yep...

JSkywalker

hmm, maybe you have to clear the cache of your browser....
JSkywalker

Dovecot 1.1.1 - Postfix 2.3.2 - Roundcube 0.2a - Opensuse 10.2
Apache 2.2.3 - Php 5.2.6 - Mysql 5.0.26[/SIZE]

tjm74

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?

tjm74

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';

Kias

Had the same problem here.  
Adding this line seems to have fixed it.

Thanks!

rosali

Problem is fixed in SVN trunk.
Regards,
Rosali