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) »
  • Error while saving new contribution
Pages: [1]

Author Topic: Error while saving new contribution  (Read 512 times)

Ashwin

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.5.40-percona-sure1-log
  • PHP version: 5.3.29
Error while saving new contribution
April 07, 2015, 11:46:21 pm
Hi,

I have recently migrated my CiviCRM installation from one server to another server.
Now facing an issue in saving new contribution. If I save the contribution without checked "Send Receipt?" it will be saved  properly. If I checked this "Send Receipt?" option it will give me an error.

Error : CiviCRM-001 - An error has occurred.

Screenshot attached

Thanks,
Ashwin KS

lolas

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 9
    • Freeform Solutions
  • CiviCRM version: Several
  • CMS version: Drupal
  • MySQL version: 5.1+
  • PHP version: Several
Re: Error while saving new contribution
April 08, 2015, 10:38:52 am
Going by the error message it looks like it is trying to generate the receipt with wkhtmltopdf but that the path is incorrect.
Take a look at the settings here: http://<yoursite>/civicrm/admin/setting/misc?reset=1
Do you have an entry for "Path to wkhtmltopdf executable"?
If you remove that setting and save does it solve the receipt problem?
Freeform Solutions provides technology and management consulting, website and database development, and managed internet hosting solutions for not-for-profit organizations (NFPs).

Ashwin

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: 4.5.3
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.5.40-percona-sure1-log
  • PHP version: 5.3.29
Re: Error while saving new contribution
April 09, 2015, 01:48:04 am
This error is solved by removing "Path to wkhtmltopdf executable" field to blank. Now I get donations receipts by email. but Now there is an another issue in mail there is some warning messages and some HTML contents.

screenshot attached.


lolas

  • I post frequently
  • ***
  • Posts: 134
  • Karma: 9
    • Freeform Solutions
  • CiviCRM version: Several
  • CMS version: Drupal
  • MySQL version: 5.1+
  • PHP version: Several
Re: Error while saving new contribution
April 09, 2015, 04:38:27 am
This new error looks like a problem parsing the Smarty template for your contribution receipt. There is either a Smarty syntax error like a missing tag ({if}{/if}) or sometimes it is just some HTML with a missing tag or missing quotes.

You may be able to find where the problem is just by reading the receipt template, by removing sections of the receipt template and testing without those pieces until you find the problem piece of syntax or by:
  • Copying the text of your template into a text file
  • Copying the text of the default template into a text file
  • Comparing them with any text comparison tool

Freeform Solutions provides technology and management consulting, website and database development, and managed internet hosting solutions for not-for-profit organizations (NFPs).

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error while saving new contribution

This forum was archived on 2017-11-26.