CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • DOMPDF_ERROR_REMOTE
Pages: [1]

Author Topic: DOMPDF_ERROR_REMOTE  (Read 2001 times)

donniemooretn

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
    • TN Hands & Voices
  • CiviCRM version: 4.4.3
  • CMS version: WordPress 3.8
  • MySQL version: 5.5.27
  • PHP version: 5.4
DOMPDF_ERROR_REMOTE
January 23, 2013, 12:13:37 am
I am not sure if this is the right place.  I am getting an error when trying to send thank you letter in pdf.  The image I uploaded is about 7k.  When I try to print one thank you letter, it not putting the image I uploaded on the PDF file.  See example attached.

I check the persist/contribute/images directory and the file is there.  The permission is set to 775. Is there something I am missing here?  Why can the image be place on the pdf?  We send thank you letters in mail to our new members with a packet.   

Wordpress 3.5
CiviCRM 2.4.7

Thanks!

Donnie Moore

mikeyleung

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress
  • MySQL version: ?
  • PHP version: 5.3.3
Re: DOMPDF_ERROR_REMOTE
January 23, 2013, 07:08:53 pm
I had the same issue here, resolved by uncommenting line 11 in

../wp-content/plugins/civicrm/civicrm/packages/dompdf/dompdf_config.custom.inc.php

uncomment so resulting line is

define("DOMPDF_ENABLE_REMOTE", true);

This allows the script to retrieve remote images even though it is on the same server. Server admin tells me that this isn't a security issue because "DOMPDF is not exposed anywhere except the admin interface of CiviCRM."

If anyone has a better solution would be happy to hear it. Although not many using Wordpress + Civi at this time so this will at least get you going.

donniemooretn

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
    • TN Hands & Voices
  • CiviCRM version: 4.4.3
  • CMS version: WordPress 3.8
  • MySQL version: 5.5.27
  • PHP version: 5.4
Re: DOMPDF_ERROR_REMOTE
January 23, 2013, 07:38:09 pm
Thank you!!  I will certainly give this a try.  I knew if I could just switch from FALSE to TRUE that it would work. Just didn't know where the file is containing the line. 

I will post back with a response.
Thanks!

Donnie Moore

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: DOMPDF_ERROR_REMOTE
April 01, 2013, 10:08:33 pm
Shouldn't this be a part of the civicrm settings file.  It is hard to remember to uncomment this everytime one updates CiviCRM.  If this were integrated in the general settings file, then it would be carried over to new upgrades easier.
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

henare

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
    • Twitter
  • CiviCRM version: 4
  • CMS version: Wordpress 3
  • MySQL version: 5
  • PHP version: 5
Re: DOMPDF_ERROR_REMOTE
April 16, 2013, 12:25:52 am
This bug is being tracked here: http://issues.civicrm.org/jira/browse/CRM-12165

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • DOMPDF_ERROR_REMOTE

This forum was archived on 2017-11-26.