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) »
  • Database Error Code: Unknown column 'civicrm_participant'
Pages: [1]

Author Topic: Database Error Code: Unknown column 'civicrm_participant'  (Read 1585 times)

rmmcclay

  • Guest
Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 01:35:38 am
CiviCRM 2.2.7
Drupal 6.1.3

Under user, then click on Events tab, it shows
the event the user has registered for and then
click on View in the last column:

http://xxxxxxxxx/civicrm/contact/view/participant?reset=1&id=58&cid=103&action=view&context=participant&selectedChild=event

Sorry. A non-recoverable error has occurred.

DB Error: no such field

Database Error Code: Unknown column 'civicrm_participant' in 'where clause', 1054

Return to home page.


Error Details:

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

       
Code: [Select]
=> -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] =>
SELECT   id, note FROM civicrm_note
WHERE    entity_table="civicrm_participant"
  AND    entity_id = 58
  AND    note is not null
ORDER BY modified_date desc [nativecode=1054 ** Unknown column 'civicrm_participant' in 'where clause']
    [type] => DB_Error
    [user_info] =>
SELECT   id, note FROM civicrm_note
WHERE    entity_table="civicrm_participant"
  AND    entity_id = 58
  AND    note is not null
ORDER BY modified_date desc [nativecode=1054 ** Unknown column 'civicrm_participant' in 'where clause']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="
SELECT   id, note FROM civicrm_note
WHERE    entity_table="civicrm_participant"
  AND    entity_id = 58
  AND    note is not null
ORDER BY modified_date desc [nativecode=1054 ** Unknown column 'civicrm_participant' in 'where clause']"]
)

rmmcclay

  • Guest
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 02:38:29 am
Looking at the query we see:

[debug_info] =>
SELECT   id, note FROM civicrm_note
WHERE    entity_table="civicrm_participant"
  AND    entity_id = 58
  AND    note is not null
ORDER BY modified_date desc [nativecode=1054 ** Unknown column 'civicrm_participant' in 'where clause']

Ok...let's look at the table, yep, it's true, there is no column 'civicrm_participant'
in the table civicrm_participant.  No wonder it's failing.  Now, how to fix this?

mysql> describe civicrm_participant;
+------------------+------------------+------+-----+---------+----------------+
| Field            | Type             | Null | Key | Default | Extra          |
+------------------+------------------+------+-----+---------+----------------+
| id               | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| contact_id       | int(10) unsigned | YES  | MUL | 0       |                |
| event_id         | int(10) unsigned | YES  | MUL | 0       |                |
| status_id        | int(10) unsigned | NO   | MUL | 1       |                |
| role_id          | int(10) unsigned | YES  | MUL | NULL    |                |
| register_date    | datetime         | YES  |     | NULL    |                |
| source           | varchar(128)     | YES  |     | NULL    |                |
| fee_level        | varchar(255)     | YES  |     | NULL    |                |
| is_test          | tinyint(4)       | YES  |     | 0       |                |
| is_pay_later     | tinyint(4)       | YES  |     | 0       |                |
| fee_amount       | decimal(20,2)    | YES  |     | NULL    |                |
| registered_by_id | int(10) unsigned | YES  | MUL | NULL    |                |
| discount_id      | int(10) unsigned | YES  | MUL | NULL    |                |
+------------------+------------------+------+-----+---------+----------------+
13 rows in set (0.00 sec)


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 02:48:40 am
It's hard for us to support older versions 2.2.x, so I would recommend you should upgrade to 3.0.x.

Kurund
Found this reply helpful? Support CiviCRM

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 02:50:39 am
Quote
Ok...let's look at the table, yep, it's true, there is no column 'civicrm_participant'
in the table civicrm_participant.

The query is looking for entity_table = 'civicrm_participant' in civicrm_note table,
should work fine.

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

rmmcclay

  • Guest
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 03:07:06 am
Quote from: Yashodha Chaku on January 19, 2010, 02:50:39 am
Quote
Ok...let's look at the table, yep, it's true, there is no column 'civicrm_participant'
in the table civicrm_participant.

The query is looking for entity_table = 'civicrm_participant' in civicrm_note table,
should work fine.

Yashodha

My mistake. In civicrm_note, every entry (mostly from the sample data) is "civicrm_contact"
in the entity_table column. Besides the error says it can't find the "column" civicrm_participant.

It's a deep game.

Thanks for the reply.



rmmcclay

  • Guest
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 03:09:11 am
Quote from: Kurund Jalmi on January 19, 2010, 02:48:40 am
It's hard for us to support older versions 2.2.x, so I would recommend you should upgrade to 3.0.x.

Kurund

As soon as CiviCRM can run on the latest PHP (5.3.1) we'll upgrade.  Until then
I guess it's game over. Which is quite sad considering how much time and effort
our organization has put into this project.

Thanks for the reply.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 03:14:00 am
Quote
As soon as CiviCRM can run on the latest PHP (5.3.1) we'll upgrade.
Well you will have to wait till 3.2.
IMHO upgrading from 2.2.x to at least 3.1 is recommended since there has been major improvement in 3.x version

Kurund
Found this reply helpful? Support CiviCRM

rmmcclay

  • Guest
Re: Database Error Code: Unknown column 'civicrm_participant'
January 19, 2010, 04:45:06 am
Quote from: Kurund Jalmi on January 19, 2010, 03:14:00 am
Quote
As soon as CiviCRM can run on the latest PHP (5.3.1) we'll upgrade.
Well you will have to wait till 3.2.
IMHO upgrading from 2.2.x to at least 3.1 is recommended since there has been major improvement in 3.x version

Kurund

We may roll back PHP on our production server to accomodate CiviCRM.  But I
am scared to death of the unknown problems which we will most certainly encounter
doing the upgrade.

The issues that concern me to upgrade are: our site is bi-lingual Chinese/English,
and our installation of Drupal/CiviCRM shares the same database.

In closing, I wasn't really looking for "support" about the fatal database error; but
more hoping someone else had had this problem.  It seems like a rare error. And
we were almost there!!!  The frustration I feel is replete.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Database Error Code: Unknown column 'civicrm_participant'

This forum was archived on 2017-11-26.