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) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
Pages: [1]

Author Topic: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7  (Read 2012 times)

fastalan

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.20
Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 26, 2013, 07:00:49 pm
Settings - Localization - Multiple Language Support

Drupal 7.20 / CiviCRM 4.2.7

When I try to enable Multiple Language Support, apache returns out side of the drupal framework:

Sorry but we are not able to provide this at the moment.
DB Error: unknown error

How can I troubleshoot this issue?


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: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 26, 2013, 08:14:22 pm

check your files/civicrm/ConfigAndLog directory for a CiviCRM.*.log file

a more detailed backtrace of the query should be logged in this file

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

fastalan

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.20
Re: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 26, 2013, 08:24:39 pm
Nothing is reported in that log when I execute the command.

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: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 26, 2013, 08:28:52 pm

hmm. i would double check that log, we do try to write more details of all fatal errors in that log

if nothing appears, i dont have any more ideas :(

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

fastalan

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.20
Re: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 27, 2013, 10:06:53 am
Does this help?

#27 {main}


Feb 26 23:23:33  [info] $Fatal Error Details = Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => ALTER TABLE civicrm_location_type ADD display_name_en_US varchar(64) [nativecode=1060 ** Duplicate column name 'display_name_en_US']
    [type] => DB_Error
    [user_info] => ALTER TABLE civicrm_location_type ADD display_name_en_US varchar(64) [nativecode=1060 ** Duplicate column name 'display_name_en_US']
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="ALTER TABLE civicrm_location_type ADD display_name_en_US varchar(64) [nativecode=1060 ** Duplicate column name 'display_name_en_US']"]
)


Feb 26 23:23:33  [info] $backTrace = #0 /srv/wmc/www/docroot/drupalcms/sites/all/modules/civicrm/CRM/Core/Error.php(196): CRM_Core_Error::backtrace("backTrace", TRUE)

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: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 27, 2013, 11:58:24 am

curious as to where this error message was?

seems like it failed the first time and left the DB in a bad state (with some tables already having the column) and hence this failure

can you reinstall civi and try the process again?

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

fastalan

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.20
Re: Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7
February 27, 2013, 09:47:07 pm
Ok, I dropped the database and re-installed and now it's working.  Thanks for your help.
« Last Edit: February 27, 2013, 10:17:45 pm by fastalan »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Cannot enable Multiple Languages Support - Drupal 7 / CiviCRM 4.2.7

This forum was archived on 2017-11-26.