Body: <p>I have been trying to send old invoices to members. When printing to pdf, the file is essentially blank. When using the the email button I get the following error. Any help would be greatly appreciated:</p>
  
  <pre><code>Notice: Undefined variable: CRM16923AnUnreliableMethodHasBeenUserToDeterminePaymentProcessorFromContributionPage in CRM_Contribute_BAO_Contribution-&gt;loadRelatedObjects() (line 2410 of /var/www/html/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).
  Notice: Undefined variable: invoiceNumber in CRM_Contribute_Form_Task_Invoice::printPDF() (line 569 of /var/www/html/sites/all/modules/civicrm/CRM/Contribute/Form/Task/Invoice.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  </code></pre>
  
  <p>Error messages continue for quite awhile but are pretty similar and look to be related to the html to pdf converter. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-05T11:19:31.613Z
Comments.Text: What version of CiviCRM are you using?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-06T17:24:48.367Z
Comments.Text: 4.7.30, recent upgrade but I was seeing this issue prior
Comments.UserDisplayName: Matthew Philp
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-03-30T03:40:44.263Z
Comments.Text: Well I added wkhtmltopdf and now it seems to be producing invoices just fine......
Comments.UserDisplayName: Matthew Philp
Tags: <civicontribute>
Title: Error when trying to print/email invoice
ThreadText: # Error when trying to print/email invoice
  
  (Asked by: username_0 on 2018-03-03)
  
  I have been trying to send old invoices to members. When printing to pdf, the file is essentially blank. When using the the email button I get the following error. Any help would be greatly appreciated:
  Notice: Undefined variable: CRM16923AnUnreliableMethodHasBeenUserToDeterminePaymentProcessorFromContributionPage in CRM_Contribute_BAO_Contribution->loadRelatedObjects() (line 2410 of /var/www/html/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).
  Notice: Undefined variable: invoiceNumber in CRM_Contribute_Form_Task_Invoice::printPDF() (line 569 of /var/www/html/sites/all/modules/civicrm/CRM/Contribute/Form/Task/Invoice.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  Notice: Undefined property: DOMAttr::$value in Dompdf\Css\AttributeTranslator::translate_attributes() (line 233 of /var/www/html/sites/all/modules/civicrm/vendor/dompdf/dompdf/src/Css/AttributeTranslator.php).
  
  Error messages continue for quite awhile but are pretty similar and look to be related to the html to pdf converter.
  
  **Tags:** civicontribute
  
  > **Comments:**
  > **username_1**: What version of CiviCRM are you using?  
  > **username_0**: 4.7.30, recent upgrade but I was seeing this issue prior  
  > **username_0**: Well I added wkhtmltopdf and now it seems to be producing invoices just fine......  
  
  ---
  
  ## 0 answers
  
  