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) »
  • Templates not loading in PDF letters for contacts
Pages: [1]

Author Topic: Templates not loading in PDF letters for contacts  (Read 1351 times)

Denim

  • I’m new here
  • *
  • Posts: 4
  • Karma: 2
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.37
  • PHP version: 5.4.6
Templates not loading in PDF letters for contacts
September 23, 2014, 10:16:17 pm
After an upgrade to 4.5 on Drupal 7, the templates no longer load when using Print PDF Letter for Contacts.  No problem using them with CiviMail.  And it worked on 4.4 (as it does on the demo site).

I noticed a discussion re: Replacing DOMPDF with TCPDF here: https://issues.civicrm.org/jira/browse/CRM-14567.  The change was rolled back, but could this have caused the problem?

I haven't seen any other questions about this on the forums, but it's (very) early days yet for 4.5.  Anyone else having PDF trouble with 4.5? 

Tony Jaques

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.72
  • PHP version: 5.3
Re: Templates not loading in PDF letters for contacts
September 26, 2014, 10:16:46 am
Dunno if relevant, but I'm a novice user, currently trying to compose pdf letters for contacts in a smart group. Get to the foot of the letter, hit MAKE PDF LETTERS and all I get is a pause for a few seconds and then a white screen (the manual suggests I'll get a pop-up screen to Open or Save the downloads). Very frustrating. Not sure if I'm doing something wrong or there is some glitch. Anyone help please?

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Templates not loading in PDF letters for contacts
September 26, 2014, 10:57:25 am
Hi Tony,

I think your issue is unrelated - so you're better off starting your own topic instead!

Regarding your issue (Tony) - PDF generation is one of the more processing-intensive things that CiviCRM does.  So it could be that you're exceeding the CPU capacity that your web host has allocated for you.  A good way to check is to try to generate only 1-2 of the same PDF letters and see if you get the same issue.  If you can get some but not all, the issue is almost certainly that you need more server power.  At that point, I'd talk to whomever is responsible - it may be that you can tweak your existing settings (especially if the issue is a PHP timeout or memory limit), or it may be that you need a heftier server.

If you experience the problem even with just 1-2 PDF letters, you can try checking your error logs (both Apache and CiviCRM's).  See also this thread: http://forum.civicrm.org/index.php?topic=24422.0
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Tony Jaques

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3.8
  • CMS version: Drupal 7.22
  • MySQL version: 5.1.72
  • PHP version: 5.3
Re: Templates not loading in PDF letters for contacts
September 26, 2014, 11:35:51 am
Thanks JonGold, very helpful.

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Templates not loading in PDF letters for contacts
September 26, 2014, 11:46:20 am
I am experiencing the same problem.  I dont think this is a memory issue as the template is not loading, so you don't even get an opportunity to create a PDF.  If I go to Civimail, I can pull up any template.  I can pull them up in Message templates and edit.  When I go to Create PDF letter, and select the template, nothing appears.  The template appears blank. 

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Templates not loading in PDF letters for contacts
September 26, 2014, 08:02:51 pm
Here is the difference.  In the one picture I have pulled up Send an e-mail and the New Member Letter comes up with Logo.  In the other picture I selected the same template for Create PDF Letter and nothing happens.  Some thing seems to be wrong with the call for Create PDF Letter in 4.5.0.  I have not had any issues with this before I upgraded.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Templates not loading in PDF letters for contacts
September 28, 2014, 08:48:38 am
Denim, bighudsonnut - I agree that the problem you're seeing is a bug, and almost certainly not one caused by a memory issue.  I'd recommend making sure you can replicate the problem on the demo 4.5 server (might still be called "sandbox" for 4.5), then submitting a bug report on issues.civicrm.org.  Be sure to include:
* The steps to replicate on the demo server
* A link to this forum thread
* An explicit statement that this worked pre-upgrade in 4.4.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Templates not loading in PDF letters for contacts
September 28, 2014, 07:10:12 pm
So tried to replicate the problem on the demo server, but the template came up in both the email and create pdf letter.  I guess I need to figure out why mine is not coming up.

Aaron

Kirk

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.39
  • MySQL version: 5.5.44
  • PHP version: 5.6.13
Re: Templates not loading in PDF letters for contacts
September 29, 2014, 05:42:32 am
As far as I can tell this is actually a bug that was introduced in CiviCRM 4.5. It can be reproduced on the 4.5 Drupal sandbox (drupal.sandbox.civicrm.org) and the 4.5 WordPress sandbox (wordpress.sandbox.civicrm.org).

@bighudsonnut, you may have been trying to reproduce the error on one of the main demo environments, e.g. drupal.demo.civicrm.org, which are still running version 4.4.

I have created an issue on the tracker, which you can follow for updates on this bug: CRM-15383. Hopefully it'll be fixed in time for the release of 4.5.1.

UPDATE: This bug has been fixed and the fix will be in version 4.5.1.
« Last Edit: October 01, 2014, 02:56:16 am by kirk »

Denim

  • I’m new here
  • *
  • Posts: 4
  • Karma: 2
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.37
  • PHP version: 5.4.6
Re: Templates not loading in PDF letters for contacts
October 03, 2014, 05:39:17 pm
The patch at  https://github.com/civicrm/civicrm-core/pull/4280 did the trick.

Thanks to those who tracked down and squashed the bug - quite happy to be able to create PDFs again!



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Templates not loading in PDF letters for contacts

This forum was archived on 2017-11-26.