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 CiviContribute (Moderator: Donald Lobo) »
  • can I turn off the PDF receipt for CiviContribution? don't need/crashes server
Pages: [1] 2

Author Topic: can I turn off the PDF receipt for CiviContribution? don't need/crashes server  (Read 7121 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
can I turn off the PDF receipt for CiviContribution? don't need/crashes server
April 22, 2011, 01:00:08 pm
Just want to keep CiviCRM from sending a PDF attachment with the confirmation receipt email.  Is this possible?  Which PHP file to turn it off?   No such setting to turn off PDF here: /civicrm/admin/contribute/thankYou?reset=1&action=update

PDF attachment is unnecessary in our case, and on this server (please don't lecture me about changing servers, it was not my choice) it gets memory errors sometimes.

Code: [Select]
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /home/itpinter/public_html/sites/all/modules/civicrm/packages/dompdf/include/style.cls.php on line 694
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
April 22, 2011, 01:45:00 pm

CRM/Core/BAO/MessageTemplates.php, function sendTemplate

search for

Code: [Select]
            if ( $params['PDFFilename'] && $params['html'] ) {

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
April 25, 2011, 10:58:39 am
Thank you that works.

I comment out that line and the matching end }  (about 15 to 20 lines in total) and the entire PDF attachment is turned off.  The receipt email still works.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 10, 2011, 01:04:27 pm
I've now had 3 CiviCRM instances (3.3 or 3.4) where the PDF generation of an email receipt is creating 500 errors.   In all cases, PHP memory is set to 128MB, and the server is a VPS with at least 768M total.

Can we rethink this feature, or have an easier way to turn it off?  Like in the civicrm.settings.php file or a switch on a contribution page basis?   

I'd consider sponsoring it.
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 14, 2011, 03:07:05 pm
For anyone following this issue, the option to disable the attached PDF's is included in the 3.4.3 / 4.0.3 release:
http://issues.civicrm.org/jira/browse/CRM-8278

Check under Administer > Configure > Global Settings > Miscellaneous Settings

"Attach PDF copy to receipts" [ ] yes   [ ] no

Thanks to Stuart Korlon (Korlon Consulting) for helping to make this happen!
Protect your investment in CiviCRM by  becoming a Member!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 15, 2011, 02:33:01 am
thanks so much stoob - i guess the next question is should the default be 'on' or 'off' - maybe a question for a poll sometime when more people are familiar with the option being available?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 15, 2011, 02:52:40 pm
The dompdf version packaged with CiviCRM is pretty old - probably worth testing the latest version against this problem
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 20, 2011, 12:20:26 pm
I posted an issue for 4.1 to update our copy in packages to the latest available:
http://issues.civicrm.org/jira/browse/CRM-8333
Protect your investment in CiviCRM by  becoming a Member!

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 21, 2011, 08:56:18 am
Same issue is discussed here: http://forum.civicrm.org/index.php/topic,19801.15.html

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 22, 2011, 05:53:24 pm
I made a $contribution to the general fund for this improvement, I am glad it is appreciated and welcomed by others, too.

I vote 'no' for the default.

I never understood the new 'pdf receipt attachment' feature being added in the first place.   Every email client in the world has a "print" button already - it may not be pretty but DomPDF isn't pretty either, and DomPDF's a memory hog.

We don't want our payment processing and 'thank you' page being knocked out by DomPDF.


Try CiviTeacher: the online video tutorial CiviCRM learning library.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 22, 2011, 06:29:55 pm
I concur with @stoob that this feature should be turned off by default. I've had no problem with DomPDF but I can imagine some sites will find the auto-generated PDF is not to their taste.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
June 23, 2011, 06:25:01 pm
Thanks for the feedback. We'll make the default = OFF for new installs:
http://issues.civicrm.org/jira/browse/CRM-8350
Protect your investment in CiviCRM by  becoming a Member!

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
March 08, 2012, 05:47:29 am
Just wanted to flag that, post-upgrade from 3.3.6 to 3.4.8, the setting is *not set* rather than *no* as default. I see you said "default for new installs" - looks like upgraded installs may have no default?
@xurizaemon ● www.fuzion.co.nz

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
March 08, 2012, 04:24:08 pm
AFAIK, "not set" behaves the same as "no" - and updating that serialized chunk of config data didn't seem worth the effort.
Protect your investment in CiviCRM by  becoming a Member!

flug

  • I post frequently
  • ***
  • Posts: 126
  • Karma: 12
Re: can I turn off the PDF receipt for CiviContribution? don't need/crashes server
September 25, 2012, 05:12:59 pm
Quote from: Dave Greenberg on June 14, 2011, 03:07:05 pm
For anyone following this issue, the option to disable the attached PDF's is included in the 3.4.3 / 4.0.3 release:
http://issues.civicrm.org/jira/browse/CRM-8278

Check under Administer > Configure > Global Settings > Miscellaneous Settings

"Attach PDF copy to receipts" [ ] yes   [ ] no

Thanks to Stuart Korlon (Korlon Consulting) for helping to make this happen!

FYI under 4.2 this is now in this admin menu: Admin > System Settings > Undelete, Logging and ReCAPTCHA.

Maybe not the very first place I'd be looking for it!

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • can I turn off the PDF receipt for CiviContribution? don't need/crashes server

This forum was archived on 2017-11-26.