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 at the end of a conrtibution
Pages: [1]

Author Topic: Error at the end of a conrtibution  (Read 616 times)

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Error at the end of a conrtibution
October 12, 2011, 06:15:25 pm
Hello all,

Users are getting this error at on the thankyou page for contributions.

Contributions are going through just fine, and the thankyou emails work ok.

Code: [Select]
Database Error Code: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1, 1064
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] => SELECT contact_id FROM civicrm_membership WHERE id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    [type] => DB_Error
    [user_info] => SELECT contact_id FROM civicrm_membership WHERE id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT contact_id FROM civicrm_membership WHERE id =  [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]"]
)

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: Error at the end of a conrtibution
October 12, 2011, 06:36:12 pm
here is the backtrace

Code: [Select]
backTrace
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 159
, handle,
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 968
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 564
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB/mysql.php, raiseError, 898
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB/DataObject.php, query, 2424
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/DB/DataObject.php, _query, 1610
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 152
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 879
/home/site/public_html/www.com/modules/civievent_discount/civievent_discount.module, executeQuery, 680
/home/site/public_html/www.com/modules/civievent_discount/civievent_discount.module, _get_civicrm_contactid_by_memberid, 337
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Utils/Hook/Drupal.php, civievent_discount_civicrm_postProcess, 53
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Utils/Hook.php(145) : eval()'d code, invoke, 1
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Utils/Hook.php, eval, 145
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 265
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/Form.php, postProcessHook, 252
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 167
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 64
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/site/public_html/www.com/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
/home/site/public_html/www.com/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 223
/home/site/public_html/www.com/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 360
, civicrm_invoke,
/home/site/public_html/www.com/includes/menu.inc, call_user_func_array, 349
/home/site/public_html/www.com/index.php, menu_execute_active_handler, 17

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: Error at the end of a conrtibution
October 12, 2011, 06:59:41 pm

this is an error from the civievent_discount module. You should post it on the issue queue at:

http://drupal.org/project/issues/civievent_discount?categories=All

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

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: Error at the end of a conrtibution
October 12, 2011, 07:04:52 pm
Thanks Lobo,

I have posted it on the module page

http://drupal.org/node/1308098

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Error at the end of a conrtibution

This forum was archived on 2017-11-26.