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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
Pages: [1]

Author Topic: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)  (Read 4895 times)

innov8ion

  • Guest
2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 10:58:01 am
Server Info
Joomla 1.5.9
PHP 5.2.8
Apache 2.2.11 (Unix)

On the same server, but a different site.  CiviCRM 2.2 beta 2 installs correctly.  When I access CiviCRM from administrator, I receive this error:

-----------
Code: [Select]
Sorry. A non-recoverable error has occurred. The error trace below might help to resolve the issue

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

    [code] => -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT  config_backend, locales 
 FROM civicrm_domain
 
 [nativecode=1054 ** Unknown column 'locales' in 'field list']
    [type] => DB_Error
    [user_info] => SELECT  config_backend, locales 
 FROM civicrm_domain
 
 [nativecode=1054 ** Unknown column 'locales' in 'field list']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT  config_backend, locales 
 FROM civicrm_domain
 
 [nativecode=1054 ** Unknown column 'locales' in 'field list']"]
)
[/code]
« Last Edit: February 15, 2009, 11:00:16 am by innov8ion »

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: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 03:34:16 pm

can you check your db where u get this error and ensure that locales is a column in the table 'civicrm_domain'

if not, there was some error in your install and the db schema was not installed properly

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

innov8ion

  • Guest
Re: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 03:38:08 pm
I checked and there is no locales column in the 'civicrm_domain' table.  Below is the information for that table in my instance. 

Field   Type   Null   Default   Comments
id   int(10)   No        Domain ID
name   varchar(64)   Yes    NULL    Name of Domain / Organization
description   varchar(255)   Yes    NULL    Description of Domain.
email_name   varchar(255)   Yes    NULL    The default email name that is used in the from address for all outgoing emails
email_address   varchar(255)   Yes    NULL    The default email address that is used as the from address for all outgoing emails
email_domain   varchar(64)   Yes    NULL    The domain from which outgoing email for this domain will appear to originate
email_return_path   varchar(64)   Yes    NULL    The domain from which outgoing email for this domain will appear to originate
config_backend   text   Yes    NULL    Backend configuration.
version   varchar(8)   Yes    NULL    The civicrm version this instance is running
loc_block_id   int(10)   Yes    NULL    FK to Location Block ID. This is specifically not an FK to avoid circular constraints

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: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 03:43:08 pm

The definition in civicrm.mysql is:

Code: [Select]
CREATE TABLE civicrm_domain (
     id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'Domain ID',
     name varchar(64)    COMMENT 'Name of Domain / Organization',
     description varchar(255)    COMMENT 'Description of Domain.',
     config_backend text    COMMENT 'Backend configuration.',
     version varchar(32)    COMMENT 'The civicrm version this instance is running',
     loc_block_id int unsigned    COMMENT 'FK to Location Block ID. This is specifically not an FK to avoid circular constraints',
     locales text    COMMENT 'list of locales supported by the current db state (NULL for single-lang install)',
    PRIMARY KEY ( id ),
     UNIQUE INDEX UI_name(
        name
  )
)  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;

i'm not very sure why your schema does not have locales. You can try modifying the schema manually

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

innov8ion

  • Guest
Re: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 03:59:54 pm
Ok, great.  I've added the locales field and now get this when I click on any link:

Quote
Sorry. A non-recoverable error has occurred.
DB Error: no such table

Database Error Code: Table 'digistic_lucasprk.civicrm_menu' doesn't exist, 1146

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: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 04:03:32 pm

seems like both your issues had bad installs. I would reinstall and see if there are any errors etc.

you might also want to check and ensure that your mysql civicrm schema and the schema in civicrm.mysql are identical

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

innov8ion

  • Guest
Re: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 04:07:50 pm
Tried uninstalling and get the error below.  Think i'm going to delete the tables from phpmyadmin and remove the civicrm folders in administrator, components and media.  Would that be a full uninstall?

Quote
Sorry. A non-recoverable error has occurred.
DB Error: constraint violation

Database Error Code: Cannot delete or update a parent row: a foreign key constraint fails, 1217

Error Details:

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

       
Code: [Select]
=> -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => DROP TABLE IF EXISTS civicrm_event [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]
    [type] => DB_Error
    [user_info] => DROP TABLE IF EXISTS civicrm_event [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]
    [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="DROP TABLE IF EXISTS civicrm_event [nativecode=1217 ** Cannot delete or update a parent row: a foreign key constraint fails]"]
)
[/quote]
« Last Edit: February 15, 2009, 04:14:02 pm by innov8ion »

innov8ion

  • Guest
Re: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 04:35:34 pm
I don't know how to delete all the civicrm tables because there's dependencies.  Any good way of doing this?

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: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 04:41:14 pm

there should be a file in your distribution called: sql/civicrm_drop.mysql

you can use that to drop all the tables in your db

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

innov8ion

  • Guest
Re: 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)
February 15, 2009, 04:59:35 pm
Nice. I found the script and ran it.  Reinstalled.  Things seem ok now.  Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.2 Release Testing »
  • 2.2 beta 2 on Joomla - Nonrecoverable error (locales?)

This forum was archived on 2017-11-26.