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.1 Release Testing »
  • Error deleting custom field (for members)
Pages: [1]

Author Topic: Error deleting custom field (for members)  (Read 1988 times)

at02

  • Guest
Error deleting custom field (for members)
September 08, 2008, 08:24:40 am
Okay, I was trying to set up the member profile and sign-up parts to be applicable for our uses, but every time I try to delete one of the custom fields (I have been able to delete other things, like the "transgender" option as well as the "interview" activity type) I keep getting this error, which I will post below. Any help fixing this would be appreciated. Thanks!



Quote
Quote
Confirm Custom Field Delete

Sorry. A non-recoverable error has occurred.
DB Error: not found

Database Error Code: Can't DROP 'INDEX_marital_status_2'; check that column/key exists, 1091

Return to home page.

Quote
Error Details:

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

        [ code] => -4
((I put a space there so it would show up correctly))
    [message] => DB Error: not found
    [mode] => 16
    [debug_info] =>         ALTER TABLE civicrm_value_constituent_information_1 DROP COLUMN `marital_status_2`, DROP INDEX INDEX_marital_status_2 [nativecode=1091 ** Can't DROP 'INDEX_marital_status_2'; check that column/key exists]
    [type] => DB_Error
    [user_info] =>         ALTER TABLE civicrm_value_constituent_information_1 DROP COLUMN `marital_status_2`, DROP INDEX INDEX_marital_status_2 [nativecode=1091 ** Can't DROP 'INDEX_marital_status_2'; check that column/key exists]
    [to_string] => [db_error: message="DB Error: not found" code=-4 mode=callback callback=CRM_Core_Error::handle prefix="" info="        ALTER TABLE civicrm_value_constituent_information_1 DROP COLUMN `marital_status_2`, DROP INDEX INDEX_marital_status_2 [nativecode=1091 ** Can't DROP 'INDEX_marital_status_2'; check that column/key exists]"]
)
« Last Edit: September 08, 2008, 08:29:39 am by at02 »

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: Error deleting custom field (for members)
September 08, 2008, 09:37:39 am

our original sample custom table was not created automatically and as such had a few bugs in it and hence deleting that custom field works. i've fixed this for 2.1 beta4

your best bet in the short term is to drop the columns and indexes from the custom table manually, and then drop the custom field definition

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • Error deleting custom field (for members)

This forum was archived on 2017-11-26.