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 CiviEvent (Moderator: Yashodha Chaku) »
  • SQL Error w/CiviCRM?
Pages: [1]

Author Topic: SQL Error w/CiviCRM?  (Read 1030 times)

civitas

  • Guest
SQL Error w/CiviCRM?
July 28, 2008, 12:01:44 pm
Hello,
First off I have CiviCRM 1.9.11960 under Drupal.
The Problem: When people are trying to register for a paid event (not an event that is unpaid) they get the following error:

    Sorry. A non-recoverable error has occurred.

    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 'GROUP BY civicrm_participant.event_id' at line 9, 1064

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] => SELECT   count(civicrm_participant.id) as total_participants,
                           civicrm_event.max_participants as max_participants,
                           civicrm_event.event_full_text as event_full_text 
                  FROM     civicrm_participant, civicrm_event
                  WHERE    civicrm_participant.event_id = civicrm_event.id
                     AND   civicrm_participant.status_id!=4
                     AND   civicrm_participant.is_test=0
                     AND   civicrm_participant.event_id=
                  GROUP BY civicrm_participant.event_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 'GROUP BY civicrm_participant.event_id' at line 9]
    [type] => DB_Error
    [user_info] => SELECT   count(civicrm_participant.id) as total_participants,
                           civicrm_event.max_participants as max_participants,
                           civicrm_event.event_full_text as event_full_text 
                  FROM     civicrm_participant, civicrm_event
                  WHERE    civicrm_participant.event_id = civicrm_event.id
                     AND   civicrm_participant.status_id!=4
                     AND   civicrm_participant.is_test=0
                     AND   civicrm_participant.event_id=
                  GROUP BY civicrm_participant.event_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 'GROUP BY civicrm_participant.event_id' at line 9]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT   count(civicrm_participant.id) as total_participants,
                           civicrm_event.max_participants as max_participants,
                           civicrm_event.event_full_text as event_full_text 
                  FROM     civicrm_participant, civicrm_event
                  WHERE    civicrm_participant.event_id = civicrm_event.id
                     AND   civicrm_participant.status_id!=4
                     AND   civicrm_participant.is_test=0
                     AND   civicrm_participant.event_id=
                  GROUP BY civicrm_participant.event_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 'GROUP BY civicrm_participant.event_id' at line 9]"]
)


MichaƂ Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: SQL Error w/CiviCRM?
August 07, 2008, 03:21:34 am
First of all, please consider upgrading to 2.0, or wait a bit and upgrade to 2.1, when stable version of it is out (first alpha has been released yesterday). 1.9 is not supported anymore.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • SQL Error w/CiviCRM?

This forum was archived on 2017-11-26.