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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • DB Error on create dedupes rules
Pages: [1]

Author Topic: DB Error on create dedupes rules  (Read 1165 times)

p.gervaix

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
    • ISHR
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63-0+squeeze1-log
  • PHP version: 5.3.3-7+squeeze13
DB Error on create dedupes rules
May 24, 2012, 02:59:46 am
hi , I have this db error when i create i new dedupes rules:

ERROR:

DB Error: no such field
Error Details
Database Error Code: Unknown column 'civicrm_dedupe_rule_group.title' in 'where clause', 1054
Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT *
 FROM civicrm_dedupe_rule_group
 
 WHERE (  civicrm_dedupe_rule_group.title  = 'NameEmail' ) 
 
 
 
 [nativecode=1054 ** Unknown column 'civicrm_dedupe_rule_group.title' in 'where clause']
    [type] => DB_Error
    [user_info] => SELECT *
 FROM civicrm_dedupe_rule_group
 
 WHERE (  civicrm_dedupe_rule_group.title  = 'NameEmail' ) 
 
 
 
 [nativecode=1054 ** Unknown column 'civicrm_dedupe_rule_group.title' 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 *
 FROM civicrm_dedupe_rule_group
 
 WHERE (  civicrm_dedupe_rule_group.title  = 'NameEmail' ) 
 
 
 
 [nativecode=1054 ** Unknown column 'civicrm_dedupe_rule_group.title' in 'where clause']"]
)


Thx for the Help
Fil

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: DB Error on create dedupes rules
June 21, 2012, 05:57:07 am
Same problem here.
When I check the table in the DB I see no 'title' column, but several title columns for the languages
title_fr_FR title_nl_NL title_en_GB

So my uneducated guess is the code that managed the dedupe rules somehow missed the fact that this is a multilingual install.

I filed a bug report
http://issues.civicrm.org/jira/browse/CRM-10423

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: DB Error on create dedupes rules
June 21, 2012, 06:50:52 am

seems like that table was switched to multi-lingual by someone in release X

at a later release they realized they did not need it and switched it back. However the code base was unchanged

I'm not sure what happened and why and dont know an easy fix either

On a different but related note, I'd very much like to see a group of consultants / developers / users who depend on multi-lingual significantly to help manage, maintain and improve the multi-lingual stuff. Any chance u'd be interested in playing a lead role / be part of the team

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

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: DB Error on create dedupes rules
June 21, 2012, 06:52:45 am
Can't play a lead role, but I sure can report what I see, and maybe contribute to some testing.
In belgium multilingual is the norm (Fr + Nl) so it helps :)

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: DB Error on create dedupes rules
June 21, 2012, 06:54:42 am
Can't it be reverted to multilingual for the time being ?
As is it's not possible to edit/add any dedupe rules, making the dedupe 'default or nothing'.
(Can edit some parameters in mysql, but...  ::)  ;D )

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: DB Error on create dedupes rules
June 21, 2012, 09:06:27 am

For now the easiest fix is:

1. create a new column in that table called: 'title'

2. Copy the right values to that column from the title_XX_YY columns

3. You can optionally delete the other columns

For multi-lingual stuff to be improved and expanded on we definitely need a few folks to start contributing to the codebase. So would be great if you can start recruiting other folks from BE / CA other multi-lingual countries

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

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
Re: DB Error on create dedupes rules
June 25, 2012, 05:55:31 am
Thanks.
I added the table and copied from the french column using this sql query :

update `civicrm_dedupe_rule_group` set title = (select title_fr_FR)

Works like a charm :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • DB Error on create dedupes rules

This forum was archived on 2017-11-26.