Body: <p>CiviCRM 5.45.5, Drupal 7.87.  Getting the dreaded &quot;image not found or type unknown&quot; error in PDFs.  I've tried the solutions listed here (<a href="https://civicrm.stackexchange.com/questions/7366/print-pdf-letter-image-not-readable-or-empty">Print PDF Letter. Image not readable or empty</a>), to wit:</p>
  <ul>
  <li>absolute link to image</li>
  <li>relative link to image</li>
  <li>adjusted relative links such as sites/default/etc. (no leading slash) and the . in front of a leading slash</li>
  <li>link to image on another server/site</li>
  <li>reuploading the image, and converting from .png to .jpg</li>
  <li>confirming that dompdf remote images are enabled</li>
  <li>confirming that file permissions allow for reading (the images are all accessible directly via the browser)</li>
  </ul>
  <p>What am I missing here?  This functionality works on every other Civi site (of comparable versions for Civi and Drupal) that I can access.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-16T13:40:19.217Z
Comments.Text: You should be able to put `global $_dompdf_show_warnings; $_dompdf_show_warnings = true;` in civicrm.settings.php to output some secondary messages to the pdf giving a more detailed message, but that causes a different crash for me. You can add `\CRM_Core_Error::debug_log_message($errstr);` at https://github.com/dompdf/dompdf/blob/70910027340e9455cbc1cfc655530eb87419dd9c/src/Helpers.php#L560 and then check civi log. Also see this block for the many reasons you can get this error: https://github.com/dompdf/dompdf/blob/70910027340e9455cbc1cfc655530eb87419dd9c/src/Image/Cache.php#L80-L178.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-17T18:05:26.223Z
Comments.Text: Did you try creating the full instance in a different server ? and then test it
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-17T20:52:50.753Z
Comments.Text: We actually were able to debug based on Demerit's suggestion - it turned out to be an issue with the SSL certificate on the site.
Comments.UserDisplayName: Lesley Carter - BackOffice
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-18T05:53:11.483Z
Comments.Text: Did you manage to fix the issue ? - else Try removing the SSL certificate and then try (I did had similar issue on the server were server PDF font was not picking correctly )
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-18T16:56:31.030Z
Comments.Text: The client's web host is correcting the SSL cert issue now; we have a patch in place to get the client by temporarily.  As a side note for others reading this thread later, the same cert issue impacted templates with images that are downloaded as Word or OpenOffice files.
Comments.UserDisplayName: Lesley Carter - BackOffice
Tags: <pdf><dompdf>
Title: Dompdf image not found or type unknown
ThreadText: # Dompdf image not found or type unknown
  
  (Asked by: username_0 on 2022-05-05)
  
  CiviCRM 5.45.5, Drupal 7.87. Getting the dreaded "image not found or type unknown" error in PDFs. I've tried the solutions listed here ([Print PDF Letter. Image not readable or empty](https://civicrm.stackexchange.com/questions/7366/print-pdf-letter-image-not-readable-or-empty)), to wit:
  
  * absolute link to image
  * relative link to image
  * adjusted relative links such as sites/default/etc. (no leading slash) and the . in front of a leading slash
  * link to image on another server/site
  * reuploading the image, and converting from .png to .jpg
  * confirming that dompdf remote images are enabled
  * confirming that file permissions allow for reading (the images are all accessible directly via the browser)
  
  What am I missing here? This functionality works on every other Civi site (of comparable versions for Civi and Drupal) that I can access.
  
  **Tags:** pdf, dompdf
  
  > **Comments:**
  > **username_1**: You should be able to put `global $_dompdf_show_warnings; $_dompdf_show_warnings = true;` in civicrm.settings.php to output some secondary messages to the pdf giving a more detailed message, but that causes a different crash for me. You can add `\CRM_Core_Error::debug_log_message($errstr);` at https://github.com/dompdf/dompdf/blob/70910027340e9455cbc1cfc655530eb87419dd9c/src/Helpers.php#L560 and then check civi log. Also see this block for the many reasons you can get this error: https://github.com/dompdf/dompdf/blob/70910027340e9455cbc1cfc655530eb87419dd9c/src/Image/Cache.php#L80-L178.  
  > **username_2**: Did you try creating the full instance in a different server ? and then test it  
  > **username_0**: We actually were able to debug based on username_1's suggestion - it turned out to be an issue with the SSL certificate on the site.  
  > **username_2**: Did you manage to fix the issue ? - else Try removing the SSL certificate and then try (I did had similar issue on the server were server PDF font was not picking correctly )  
  > **username_0**: The client's web host is correcting the SSL cert issue now; we have a patch in place to get the client by temporarily.  As a side note for others reading this thread later, the same cert issue impacted templates with images that are downloaded as Word or OpenOffice files.  
  
  ---
  
  ## 0 answers
  
  