Author Topic: html2text not working  (Read 6756 times)

Offline TRex2003

  • Newbie
  • *
  • Posts: 2
html2text not working
« 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:

Quote
Fatal 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.

Offline JSkywalker

  • Jr. Member
  • **
  • Posts: 21
html2text not working
« Reply #1 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
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]

Offline TRex2003

  • Newbie
  • *
  • Posts: 2
html2text not working
« Reply #2 on: July 25, 2008, 12:02:07 PM »
1) Debian etch, PHP5, Apache 2, what else?
2) yep...

Offline JSkywalker

  • Jr. Member
  • **
  • Posts: 21
html2text not working
« Reply #3 on: July 25, 2008, 01:20:41 PM »
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]

Offline tjm74

  • Jr. Member
  • **
  • Posts: 10
php5-cgi
« Reply #4 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?

Offline tjm74

  • Jr. Member
  • **
  • Posts: 10
autoload failing on html2text
« Reply #5 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';

Offline Kias

  • Newbie
  • *
  • Posts: 1
html2text not working
« Reply #6 on: December 20, 2008, 09:46:55 AM »
Had the same problem here.  
Adding this line seems to have fixed it.

Thanks!

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
html2text not working
« Reply #7 on: December 21, 2008, 02:54:28 AM »
Problem is fixed in SVN trunk.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)