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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
Pages: [1]

Author Topic: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054  (Read 2689 times)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 02:14:25 pm
Trying to upgrade from 3.1.3 - followed the steps by the letter, but I am receiving this error with both 3.2 and 3.2.1

Any ideas would be appreciated!

Code: [Select]
Sorry. A non-recoverable error has occurred.
DB Error: no such field
Error Details
Database Error Code: Unknown column 'is_deleted' in 'field list', 1054
Additional Details:

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

    [code] => -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => SELECT  id, is_deleted  
 FROM civicrm_contact
 
 WHERE (  civicrm_contact.id = 1 )  
 
 
 
 [nativecode=1054 ** Unknown column 'is_deleted' in 'field list']
    [type] => DB_Error
    [user_info] => SELECT  id, is_deleted  
 FROM civicrm_contact
 
 WHERE (  civicrm_contact.id = 1 )  
 
 
 
 [nativecode=1054 ** Unknown column 'is_deleted' 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  id, is_deleted  
 FROM civicrm_contact
 
 WHERE (  civicrm_contact.id = 1 )  
 
 
 
 [nativecode=1054 ** Unknown column 'is_deleted' in 'field list']"]
)

I compared the civicrm_contact table structure - it seems the 3.2 and 3.2.1 both have a 'is_deleted' field, while my current db does not.[/code]
« Last Edit: August 21, 2010, 02:18:23 pm by slovak »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 02:18:06 pm
Hi - did you actually get the upgrade screen ? This looks like the message I would expect to see if you were trying to use the DB without having run civicrm/upgrade first.

Note that 3.2.2 should be coming out this week and it contains a fix to the upgrade process so you may be better to do your upgrade on that
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 02:19:11 pm
Quote from: Eileen on August 21, 2010, 02:18:06 pm
Hi - did you actually get the upgrade screen ? This looks like the message I would expect to see if you were trying to use the DB without having run civicrm/upgrade first.

Note that 3.2.2 should be coming out this week and it contains a fix to the upgrade process so you may be better to do your upgrade on that

Thanks for the prompt response. I am getting that error by going to http://example.com/civicrm/upgrade?reset=1 which is step #8 of the upgrade document

example.com is obviously changed for my site.
« Last Edit: August 21, 2010, 02:36:48 pm by slovak »

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 02:35:49 pm
And you definitely have clean urls enabled?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 02:38:46 pm
Quote from: Eileen on August 21, 2010, 02:35:49 pm
And you definitely have clean urls enabled?

Yes - I even tried the http://<drupal core>/?q=civicrm/upgrade&reset=1 and it gets changed to a clean URL.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 05:13:09 pm
What is the version value in the civicrm_domain table?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 06:42:25 pm
Quote from: Eileen on August 21, 2010, 05:13:09 pm
What is the version value in the civicrm_domain table?

3.1.3

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 06:50:42 pm
Hmmm - I'm sure the upgrade isn't running. If you are sure the URL is correct & the logged in user has the correct permissions I would try looking in the civicrm_menu table for the civicrm/upgrade path & find out what code it runs & stuck a debug in there to make sure it is running
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 07:01:00 pm
Quote from: Eileen on August 21, 2010, 06:50:42 pm
Hmmm - I'm sure the upgrade isn't running. If you are sure the URL is correct & the logged in user has the correct permissions I would try looking in the civicrm_menu table for the civicrm/upgrade path & find out what code it runs & stuck a debug in there to make sure it is running

I am logged in as an administrator, I have all permissions checked in the Drupal roles. When I go to the upgrade page under 3.1.3, it indicates I am already at 3.1.3 with bright green background, so it runs OK under the old version.

Select civicrm_menu data:
Code: [Select]
path
civicrm/upgrade

path arguments
null

title
Upgrade CiviCRM

access_callback
a:2:{i:0;s:19:"CRM_Core_Permission";i:1;s:9:"checkMenu";}

access_arguments
a:2:{i:0;a:2:{i:0;s:18:"administer CiviCRM";i:1;s:14:"access CiviCRM";}i:1;s:3:"and";}

page_callback
s:24:"CRM_Upgrade_Page_Upgrade";

page_arguments
null

breadcrumb
a:1:{i:0;a:2:{s:5:"title";s:7:"CiviCRM";s:3:"url";s:16:"/civicrm?reset=1";}}

From the original error, it indicates civicrm_contact not finding is_deleted field - is that a difference between the 3.1.3 and 3.2 versions in what fields exist in that table?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 07:05:43 pm
Yes, the is_deleted field is new to 3.2.x and I would expect that error going to any page other than the upgrade page. But the upgrade page shouldn't the database to have been upgraded already
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 07:08:17 pm
Quote from: Eileen on August 21, 2010, 07:05:43 pm
Yes, the is_deleted field is new to 3.2.x and I would expect that error going to any page other than the upgrade page. But the upgrade page shouldn't the database to have been upgraded already

Yes, I saw the error on other pages as well. Could you gain any insight from the civicrm_menu data?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 07:10:58 pm
So, what that says is that when that URL is accessed someone with 'administer civicrm' permission should run the code in file

CRM/Upgrade/Page/Upgrade.php

I'm guessing that it isn't for some reason - you should be able to put a debug line of some sort in that file around line 51 to see if it is firing
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 07:13:21 pm
NB - I can't see how it could make a difference but you could try the URL with just civicrm/upgrade & drop the &reset=1
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 07:59:24 pm
Figured it out - I am using RealName module and it was hitting the db on the pageload before the upgrade could run. Disabled the module, ran the update without a problem, enabled the module and all is well.

Thanks for hanging in there with me and providing suggestions!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054
August 21, 2010, 08:11:45 pm
Phew - perhaps you could add a note to the troubleshooting part of the upgrade instructions to help someone else if they hit the same problem
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Non-recoverable error: Unknown column 'is_deleted' in 'field list', 1054

This forum was archived on 2017-11-26.