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) »
  • SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
Pages: [1]

Author Topic: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in  (Read 1608 times)

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
October 30, 2012, 10:35:01 am
Hi,

  I am new to civicrm.  I got error message:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in 'field list'

  in my view (I am using View3).  Anyone can help me?

Thanks,

R

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
October 30, 2012, 01:54:53 pm
Did you do Views Integration: http://wiki.civicrm.org/confluence/display/CRMDOC42/Views3+Integration ?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
October 30, 2012, 02:57:54 pm
I did the view integration.  But I still got same error.

Here is my settings.php

$databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'database' => 'drupal',
      'username' => 'root',
      'password' => 'XXXX',
      'host' => 'localhost',
      'port' => '',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);
$databases['default']['default']['prefix']= array(
  'default'                                  => '',
  'civicrm_acl'                              => '`civicrm`.',
  'civicrm_acl_cache'                        => '`civicrm`.',
  'civicrm_acl_contact_cache'                => '`civicrm`.',
  'civicrm_acl_entity_role'                  => '`civicrm`.',
  'civicrm_action_log'                       => '`civicrm`.',
  'civicrm_action_mapping'                   => '`civicrm`.',
  'civicrm_action_schedule'                  => '`civicrm`.',
  'civicrm_activity'                         => '`civicrm`.',
  'civicrm_activity_assignment'              => '`civicrm`.',
  'civicrm_activity_target'                  => '`civicrm`.',
  'civicrm_address'                          => '`civicrm`.',
  'civicrm_address_format'                   => '`civicrm`.',
  'civicrm_batch'                            => '`civicrm`.',
  'civicrm_batch_en_ca'                      => '`civicrm`.',
  'civicrm_batch_zh_tw'                      => '`civicrm`.',
  'civicrm_cache'                            => '`civicrm`.',
  'civicrm_campaign'                         => '`civicrm`.',
  'civicrm_campaign_group'                   => '`civicrm`.',
  'civicrm_case'                             => '`civicrm`.',
......);

Please help me.

Thanks,

R

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
October 31, 2012, 04:33:25 am
Can you post the full SQL that Views is executing?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
October 31, 2012, 04:20:23 pm
Here is the query:   

SELECT civicrm_event.title AS civicrm_event_title, civicrm_event.id AS id, civicrm_event.start_date AS civicrm_event_start_date
FROM
{civicrm_event} civicrm_event
WHERE (( (civicrm_event.is_active <> '0') AND (civicrm_event.is_public <> '0') )AND( (DATE_FORMAT(ADDTIME(civicrm_event.start_date, SEC_TO_TIME(-25200)), '%Y-%m') >= '2012-10' AND DATE_FORMAT(ADDTIME(civicrm_event.start_date, SEC_TO_TIME(-25200)), '%Y-%m') <= '2012-10') ))
ORDER BY civicrm_event_start_date ASC

Thanks,

R
« Last Edit: October 31, 2012, 04:23:34 pm by rshun »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
November 01, 2012, 04:18:52 am
I don't know. Something is odd here. Can you post the two DB connection strings from civicrm.settings.php? Remove the passwords of course.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

rshun

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 7.21
  • MySQL version: 5.5
  • PHP version: 5.4
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
November 01, 2012, 11:19:54 am
define( 'CIVICRM_UF_DSN'           , 'mysql://root:XXX@localhost/drupal?new_link=true' );

define( 'CIVICRM_DSN'          , 'mysql://root:XXX@localhost/civicrm?new_link=true' );

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
November 01, 2012, 01:45:53 pm
I do not know. Everything you have posted looks correct. I have a feeling something is hiding somewhere that's causing this but I can't know what it is....
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

kafmil

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.095
  • PHP version: 5.2.17
Re: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in
November 06, 2012, 11:08:17 pm
Check out my post here, its at the bottom. http://forum.civicrm.org/index.php?topic=24741.0

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • SQLSTATE[42S22]: Column not found: 1054 Unknown column 'civicrm_event.title' in

This forum was archived on 2017-11-26.