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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CRM_Core_Error | DB Error: no such field exists
Pages: [1]

Author Topic: CRM_Core_Error | DB Error: no such field exists  (Read 2160 times)

dredbird

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
CRM_Core_Error | DB Error: no such field exists
May 23, 2008, 07:56:23 pm
I have imported an sql file from a CSOD backup into a "dummy site" with a goal towards exporting the data for import into our real site.

The CSOD site was broken for most of the time we had it and we were and still are unable to export our data. They fixed the backup module but not the export problem, so all I have is an sql that hasn't done me a whole lot of good so far. PHPMyadmin does not seem to really like this file very much and I'm not even sure if it imported properly. The file is 37.9 MB but cpanel says it is 1.31 every time igt gets installed.

Anyways, this is what I get after I enable CiviCRM:


Sorry. A non-recoverable error has occurred.

Database Error Code: Unknown column 'is_test' in 'where clause', 1054

Return to home page.


Error Details:


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

       
Code: [Select]
=> -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] => select count(civicrm_activity.id) from civicrm_activity
                  left join civicrm_activity_target on
                            civicrm_activity.id = civicrm_activity_target.activity_id
                  left join civicrm_activity_assignment on
                            civicrm_activity.id = civicrm_activity_assignment.activity_id
                  where  ( source_contact_id = 1 or target_contact_id = 1 or assignee_contact_id = 1 )
                  and is_test = 0 and 1 and 1 [nativecode=1054 ** Unknown column 'is_test' in 'where clause']
    [type] => DB_Error
    [user_info] => select count(civicrm_activity.id) from civicrm_activity
                  left join civicrm_activity_target on
                            civicrm_activity.id = civicrm_activity_target.activity_id
                  left join civicrm_activity_assignment on
                            civicrm_activity.id = civicrm_activity_assignment.activity_id
                  where  ( source_contact_id = 1 or target_contact_id = 1 or assignee_contact_id = 1 )
                  and is_test = 0 and 1 and 1 [nativecode=1054 ** Unknown column 'is_test' 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 count(civicrm_activity.id) from civicrm_activity
                  left join civicrm_activity_target on
                            civicrm_activity.id = civicrm_activity_target.activity_id
                  left join civicrm_activity_assignment on
                            civicrm_activity.id = civicrm_activity_assignment.activity_id
                  where  ( source_contact_id = 1 or target_contact_id = 1 or assignee_contact_id = 1 )
                  and is_test = 0 and 1 and 1 [nativecode=1054 ** Unknown column 'is_test' in 'where clause']"]
)


My worst fear is that the rhythm really is going to get me.

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: CRM_Core_Error | DB Error: no such field exists
May 24, 2008, 06:31:18 am
sounds like the backup was from an earlier version of Civicrm than the one your running now. You need to workout the original version and run the upgrade scripts.

dredbird

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: CRM_Core_Error | DB Error: no such field exists
May 25, 2008, 08:10:38 am
Thanks Speleo. That advice got me a couple of steps further.

Thru PHPmyadmin, it seems like the 1.7 to 1.8, and then 1.8 to 1.9 db updates went smoothly, but attempts to run the upgrade script from there get me a PAGE NOT FOUND error. I tried a couple of different combos, like removing index.php from the link, but same PAGE NOT FOUND.

Couldn't find what seemed like any appropriate file in the civicrm dir to point browser to either.
My worst fear is that the rhythm really is going to get me.

dredbird

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: CRM_Core_Error | DB Error: no such field exists
May 25, 2008, 08:15:48 am
Okay, I just accidentally stumbled across this step:

http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Drupal+Sites+to+2.0#UpgradeDrupalSitesto2.0-4.Rebuildyour1.9DatabasetoEnsureSchemaIntegrity

It uses pretty firm language that it's absolutely necessary to work, but I never had the 1.9 codebase so I shall go see if it's available somehwere ....
My worst fear is that the rhythm really is going to get me.

dredbird

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: CRM_Core_Error | DB Error: no such field exists
May 25, 2008, 08:36:51 am
What (or where) are the instructions for completing this step in PHPmyadmin?:

*Dump the data ONLY from your existing 1.9 database to a file:


Does this mean an export .... or I should empty the tables .. ?
My worst fear is that the rhythm really is going to get me.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CRM_Core_Error | DB Error: no such field exists
May 27, 2008, 08:03:05 pm
Check out speleo's explanation in the first post on this thread. I'm "pretty sure" his suggested checkboxes are correct. Give them a spin - and if things work please consider adding this alternate phpMyAdmin explanation to the upgrade documentation.
Protect your investment in CiviCRM by  becoming a Member!

dredbird

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: CRM_Core_Error | DB Error: no such field exists
May 28, 2008, 02:24:02 pm
Dave, I don't understand what you mean aboot checkboxes, but I did figure out it was a 1.7 db. Did the 17 to 18, then the 18 to 19, and I just now followed the instructions I linked to above for 19 to 2.0.

The upgrade script gave me this:


Quote
Sorry. A non-recoverable error has occurred.
Database consistency check failed.

Return to home page.


Return to home page gives me this:
Quote
Fatal error: Call to a member function getConfigObject() on a non-object in /home/ccag/public_html/test/sites/all/modules/civicrm/CRM/Core/Config/Defaults.php on line 205
My worst fear is that the rhythm really is going to get me.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CRM_Core_Error | DB Error: no such field exists
May 30, 2008, 01:44:18 pm
That error from the upgrade script means you will definitely need to do the steps for "Ensuring Schema Integrity" (starting again from your 1.9 DB).

The "checkboxes" I was referring to are shown in this forum post (which I forgot to include the link for - sorry):
http://forum.civicrm.org/index.php/topic,2473.msg10529.html#msg10529
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CRM_Core_Error | DB Error: no such field exists

This forum was archived on 2017-11-26.