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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Mismatched Migration
Pages: [1]

Author Topic: Mismatched Migration  (Read 987 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Mismatched Migration
October 20, 2010, 09:47:14 am
I am trying to migrate a site. The problem is that the old host is providing inconsistent data. The file civicrm-version.txt says 2.1.beta4 Joomla PHP5. I tried to run the site as is but it complained about a missing file: "CRM/Case/Info.php". Then I found that the database says the version is 3.0.3 in the civicrm_domain table, and that file doesn't exist in 2.1. So I uploaded 3.0.3 files and it began to run.

But it's not working correctly. :(

I can't save the CiviCRM Resource URL on civicrm/admin/setting/url& and if I tried to create a new Contact I get:

Code: [Select]
unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Could not find valid value for ct

So I tried to upgrade to 3.2.3 but I get

Code: [Select]
    Sorry. A non-recoverable error has occurred.
    DB Error: no such table
    Error Details
    Database Error Code: Table 'xxx_joomla.civicrm_contact_type' doesn't exist, 1146

Seems to me that the database doesn't match either 2.1 nor 3.0. :(

I posted the DB schema here: http://pastebin.com/pQpAH1r3 if anyone can provide a suggestion how to proceed with this site.

Thanks.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Mismatched Migration
October 20, 2010, 10:15:47 am
The database is more important than the codebase. If the database indicates 3.0.x then I would work to get it running with that version. It's possible the version txt file didn't copy correctly last time you upgraded -- the version listed in the db is more reliable.

If I were you, I'd roll back to the 3.0 version and focus on getting that working. In my experience, upgrading a version that is not running rarely solves the problem.

Did you make sure your two civicrm.settings.php files are updated to the new folder path? Did you go into global settings > directories and make sure they are updated? If your site domain/url has changed, then use the settings url noted below or global settings > resource urls to reset. If you have problems with those, get into the db, civicrm_domain, and set the config_backend field to null -- that forces it to regenerate the settings. But make sure your settings files are updated first -- it will generate based on those values. You could also try reinstalling v3.0.3 on top of the existing installation.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Mismatched Migration
October 20, 2010, 11:43:25 am
Brian, thanks for the response. Yes, I of course already tried everything you suggested. But now after I did the failed upgrade to 3.2.3 and then replaced the code of 3.0 that was there before, I went back to review one more time the two civicrm.settings.php files. I noticed that the non-admin one changed from a 2.1 version file to a 3.2 version file. So I copied that into the admin one (and adjusted the URL) and voila, the site works. :)

I was wondering about that--if a difference in settings files could be an issue--this site I just inherited as is. Now that it works I will try the latest upgrade again.

Thanks.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Mismatched Migration

This forum was archived on 2017-11-26.