From b0295b9a03b1d17d7f7f648fb0b91d21b2213df4 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 15 Sep 2016 19:32:59 +0530 Subject: [PATCH] CRM-19339: Can't create invoice PDF in Chrome and Firefox, This site can't be reached, ERR_INVALID_RESPONSE, File not Found --- CRM/Contribute/Form/Task/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Task/Invoice.php b/CRM/Contribute/Form/Task/Invoice.php index 1debcaa6c4..4193ef46c8 100644 --- a/CRM/Contribute/Form/Task/Invoice.php +++ b/CRM/Contribute/Form/Task/Invoice.php @@ -25,6 +25,7 @@ +--------------------------------------------------------------------+ */ +use Dompdf\Dompdf; /** * * @package CRM @@ -642,7 +643,6 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task { * Name of file which is in pdf format */ static public function putFile($html, $name = 'Invoice.pdf') { - require_once "vendor/dompdf/dompdf/dompdf_config.inc.php"; $doc = new DOMPDF(); $doc->load_html($html); $doc->render(); -- 2.25.1