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: Using new contribution tokens in PDF letter throws an error
Pages: [1]

Author Topic: Error: Using new contribution tokens in PDF letter throws an error  (Read 507 times)

Maeda

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Error: Using new contribution tokens in PDF letter throws an error
October 16, 2012, 11:06:14 pm
I'm running civicrm 4.2.2 on wordpress 3.4.2 on a windows machine using xampp, and goofing with tokens.

When I search my contributions, select a contribution, and then print a pdf letter for it using the "Thank-you Letters for Contributors" pulldown, the site will throw an error.

"Fatal error: Uncaught <table border="1" cellspacing="0"> <tr><td colspan="3" bgcolor="#ff9999"> <b>PEAR_Exception</b>: DB Error: syntax error in <b>unknown</b> on line <b>unknown</b></td></tr> <tr><td colspan="3" bgcolor="#ff9999">- <b>DB_Error</b>: DB Error: syntax error in <b>unknown</b> on line <b>unknown</b></td></tr> <tr><td colspan="3" bgcolor="#aaaaaa" align="center"><b>Exception trace</b></td></tr> <tr><td align="center" bgcolor="#cccccc" width="20"><b>#</b></td><td align="center" bgcolor="#cccccc"><b>Function</b></td><td align="center" bgcolor="#cccccc"><b>Location</b></td></tr> <tr><td align="center">0</td><td>CRM_Core_Error::exceptionHandler(Object(DB_Error))</td><td>unknown:unknown</td></tr> <tr><td align="center">1</td><td>call_user_func(Array, Object(DB_Error))</td><td>D:\xampp\htdocs\wp-content\plugins\civicrm\civicrm\packages\PEAR.php:931</td></tr> <tr><td align="center">2</td><td>PEAR_Error->PEAR_Error('DB Error: syntax&hellip;', -2, 16, Array, ' SELECT con&hellip;')</td><td>D:\xampp\htdocs\wp-conten in D:\xampp\htdocs\wp-content\plugins\civicrm\civicrm\CRM\Core\Error.php on line 676"


I put it into debug mode, and nothing different.

The funny thing is, if I remove the contribute tokens, it will work just fine. Using contact tokens, or custom tokens works great.  Only contribution tokens cause the error.

Maeda

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Re: Error: Using new contribution tokens in PDF letter throws an error
October 30, 2012, 08:18:12 pm
Stripped out the html tags...


"Fatal error: Uncaught PEAR_Exception: DB Error: syntax error in unknown on line unknown

- DB_Error: DB Error: syntax error in unknown on line unknown

Exception trace

#

Function

Location

0

CRM_Core_Error::exceptionHandler(Object(DB_Error))

unknown:unknown

1

call_user_func(Array, Object(DB_Error))

D:\xampp\htdocs\wp-content\plugins\civicrm\civicrm\packages\PEAR.php:931

2

PEAR_Error->PEAR_Error('DB Error: syntax…', -2, 16, Array, ' SELECT con…')

D:\xampp\htdocs\wp-conten in D:\xampp\htdocs\wp-content\plugins\civicrm\civicrm\CRM\Core\Error.php on line 676"

Maeda

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Wordpress 3.4.2
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Re: Error: Using new contribution tokens in PDF letter throws an error
October 30, 2012, 08:41:55 pm
Nevermind. i'm an idiot.

I uploaded a custom contribution token that shared the same name as the existing ones.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error: Using new contribution tokens in PDF letter throws an error

This forum was archived on 2017-11-26.