Answers.Body: <p>We managed to fix it by replacing the Html2Text\Html2Text with Civi version.</p>
  <pre><code>cd wp-content/plugins/mailpoet/vendor/soundasleep/html2text/src
  
  cp ../../../../../civicrm/civicrm/vendor/html2text/html2text/src/Html2Text.php .
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-12T21:21:05.077Z
Answers.Text: Thanks @Pradeep - will try this.  This changed hasn't affected anything in MailPoet for you?
Answers.UserDisplayName: astroned
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-13T10:46:07.157Z
Answers.Text: so far its working fine
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-15T15:27:47.590Z
Answers.Text: Thank you. That has it sorted for now anyway.
Answers.UserDisplayName: astroned
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-12T20:25:45.443Z
Answers.LastActivityDate: 2023-02-12T20:25:45.443Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>We upgraded CiviCRM to the most recent version back in November and had the problem in the related ticket with ANY report failing when ANY filter was enabled. The error was:</p>
  <p>Error thrown</p>
  <p>Call to undefined method Html2Text\Html2Text::getText()</p>
  <p>Another user reported finding this was a conflict with MailPoet (newsletter plugin) and we confirmed same.  We had a workaround available in that the newsletter is only active for part of the month, so we deactivated MailPoet plugin when we needed to run reports.</p>
  <p>Unfortunately, we didn't notice that it also affected the automatic (&amp; manual) issuing of receipt emails with the same issue/error.  I've spent the evening manually sending 100 email receipts. This isn't viable to continue. MailPoet is at latest version, CiviCRM is currently running 5.55.0 on a Wordpress install running 6.1.1. Issue present with PHP 7.4 &amp; also after updated to 8.1</p>
  <p><a href="https://civicrm.stackexchange.com/questions/42921/reports-failing-after-upgrade-whenany-filter-enabled">Related to this question</a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-21T08:24:57.197Z
Comments.Text: Unfortuntely, this fix was overwritten when MailPoet is upgraded. I can put it back in place, but it will keep happening and again I'm back to manually issuing the receipts that weren't sent. These two plugins worked with each other for the past 8 years. Is it a CiviCRM issue or MailPoet issue that I need to raise a bug with please?
Comments.UserDisplayName: astroned
Tags: <civicontribute><civireport><php><receipts>
Title: CiviCRM - Mailpoet plugin conflict with Html2Text
ThreadText: # CiviCRM - Mailpoet plugin conflict with Html2Text
  
  (Asked by: username_0 on 2023-02-12)
  
  We upgraded CiviCRM to the most recent version back in November and had the problem in the related ticket with ANY report failing when ANY filter was enabled. The error was:
  
  Error thrown
  
  Call to undefined method Html2Text\Html2Text::getText()
  
  Another user reported finding this was a conflict with MailPoet (newsletter plugin) and we confirmed same. We had a workaround available in that the newsletter is only active for part of the month, so we deactivated MailPoet plugin when we needed to run reports.
  
  Unfortunately, we didn't notice that it also affected the automatic (& manual) issuing of receipt emails with the same issue/error. I've spent the evening manually sending 100 email receipts. This isn't viable to continue. MailPoet is at latest version, CiviCRM is currently running 5.55.0 on a Wordpress install running 6.1.1. Issue present with PHP 7.4 & also after updated to 8.1
  
  [Related to this question](https://civicrm.stackexchange.com/questions/42921/reports-failing-after-upgrade-whenany-filter-enabled)
  
  **Tags:** civicontribute, civireport, php, receipts
  
  > **Comments:**
  > **username_0**: Unfortuntely, this fix was overwritten when MailPoet is upgraded. I can put it back in place, but it will keep happening and again I'm back to manually issuing the receipts that weren't sent. These two plugins worked with each other for the past 8 years. Is it a CiviCRM issue or MailPoet issue that I need to raise a bug with please?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-02-12. Score: 1
  
  We managed to fix it by replacing the Html2Text\Html2Text with Civi version.
  
  ```
  cd wp-content/plugins/mailpoet/vendor/soundasleep/html2text/src
  
  cp ../../../../../civicrm/civicrm/vendor/html2text/html2text/src/Html2Text.php .
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks @username_1 - will try this.  This changed hasn't affected anything in MailPoet for you?  
  > **username_1**: so far its working fine  
  > **username_0**: Thank you. That has it sorted for now anyway.  
  
  ---
  
  