Answers.Body: <p>@astroned I just ran into this issue as well and traced it to a conflict with another plugin (mailpoet). It loads a php library called Html2Text that is completely different from what Civi includes (but accomplishes the same task). I modified CRM_Utils_String::htmlToText() to conditionally run the converting function based on which library was getting loaded (using method_exists to determine which). Not ideal but that function performs a pretty basic task and I'm not too concerned about which of the two libraries is used.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-10T18:56:59.830Z
Answers.Text: Thank you! We use Mailpoet also and I confirm that when it is  deactivated, our reports run normally.   Would you mind sharing your updated file with your fix please?
Answers.UserDisplayName: astroned
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-09T16:24:01.103Z
Answers.LastActivityDate: 2022-12-09T16:24:01.103Z
Answers.UserDisplayName: lcdservices
Body: <p>After upgrading to 5.54.1, most reports are failing to run for us, generating the error below:</p>
  <p><strong>Error thrown</strong></p>
  <p><strong>Call to undefined method Html2Text\Html2Text::getText()</strong></p>
  <p>Some reports were seemingly ok but after some troubleshooting I can break these too. The reports with no filters enabled are fine, but as soon as any filter is selected, the error above appears on a new white page.</p>
  <p>There's nothing being logged in the ConfigandLog file when this happens.  Can reproduce at will.  Not limited to any specific report or filter.</p>
  <p>Any ideas? Thank you!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T17:57:17.887Z
Comments.Text: Can you reproduce this behaviour on https://dmaster.demo.civicrm.org/ ?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T18:07:22.750Z
Comments.Text: Can you add the report name?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T18:32:00.690Z
Comments.Text: Aidan - no, it's working on the demo, altough mine is a Wordpress install, not Drupal
  
  
  PradeepNayak - Every report I tried, for example 'Contribution Summary' and 'Mail Bounces'
Comments.UserDisplayName: astroned
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T18:42:32.610Z
Comments.Text: https://wpmaster.demo.civicrm.org/ then
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-04T21:14:08.637Z
Comments.Text: It's working as expected on your demo site, just not on mine.
Comments.UserDisplayName: astroned
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-05T12:34:26.903Z
Comments.Text: You could try upgrading to the just-released 5.55.0
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-05T17:12:10.077Z
Comments.Text: @Aidan - Upgraded to 5.55.0.  Same issue.
Comments.UserDisplayName: astroned
Tags: <civireport><reports><custom-reports>
Title: Reports failing after upgrade whenany filter enabled
ThreadText: # Reports failing after upgrade whenany filter enabled
  
  (Asked by: username_0 on 2022-11-04)
  
  After upgrading to 5.54.1, most reports are failing to run for us, generating the error below:
  
  **Error thrown**
  
  **Call to undefined method Html2Text\Html2Text::getText()**
  
  Some reports were seemingly ok but after some troubleshooting I can break these too. The reports with no filters enabled are fine, but as soon as any filter is selected, the error above appears on a new white page.
  
  There's nothing being logged in the ConfigandLog file when this happens. Can reproduce at will. Not limited to any specific report or filter.
  
  Any ideas? Thank you!
  
  **Tags:** civireport, reports, custom-reports
  
  > **Comments:**
  > **username_1**: Can you reproduce this behaviour on https://dmaster.demo.civicrm.org/ ?  
  > **username_2**: Can you add the report name?  
  > **username_0**: username_1 - no, it's working on the demo, altough mine is a Wordpress install, not Drupal   username_2 - Every report I tried, for example 'Contribution Summary' and 'Mail Bounces'  
  > **username_3**: https://wpmaster.demo.civicrm.org/ then  
  > **username_0**: It's working as expected on your demo site, just not on mine.  
  > **username_1**: You could try upgrading to the just-released 5.55.0  
  > **username_0**: @username_1 - Upgraded to 5.55.0.  Same issue.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2022-12-09. Score: 2 | Accepted answer
  
  @username_0 I just ran into this issue as well and traced it to a conflict with another plugin (mailpoet). It loads a php library called Html2Text that is completely different from what Civi includes (but accomplishes the same task). I modified CRM\_Utils\_String::htmlToText() to conditionally run the converting function based on which library was getting loaded (using method\_exists to determine which). Not ideal but that function performs a pretty basic task and I'm not too concerned about which of the two libraries is used.
  
  > **Comments:**
  > **username_0**: Thank you! We use Mailpoet also and I confirm that when it is  deactivated, our reports run normally.   Would you mind sharing your updated file with your fix please?  
  
  ---
  
  