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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error on migration of a CiviCRM 3.1 site to another hosting environment
Pages: [1]

Author Topic: Error on migration of a CiviCRM 3.1 site to another hosting environment  (Read 1505 times)

RicardoDavis

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4 (yay!)
  • CMS version: 7
  • MySQL version: 5.1
  • PHP version: 5.2
Error on migration of a CiviCRM 3.1 site to another hosting environment
August 24, 2011, 07:35:23 am
I'm moving our Drupal 6/CiviCRM 3.1.5 site to another hosting environment.  Drupal is working fine, but when I try to pull up the CiviCRM dashboard I get the following error.

Quote
We could not write /var/www/vhosts/personhood.us/httpdocs/sites/default/files/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini. Have you moved your site directory or server?

I've updated the civi/configuration.php file by correcting the file paths for $log_path and $tmp_path but this didn't resolve the error.  Any ideas?  Is this reference in the database rather than a configuration file?

-Ricardo

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
August 24, 2011, 07:42:34 am
Quote from: RicardoDavis on August 24, 2011, 07:35:23 am

I've updated the civi/configuration.php file by correcting the file paths for $log_path and $tmp_path but this didn't resolve the error.  Any ideas?  Is this reference in the database rather than a configuration file?

I am not aware of any file called civi/configuration.php

The correct way anyhow to fix this is to edit sites/default/civicrm.settings.php and adjust $civicrm_root and 'CIVICRM_TEMPLATE_COMPILEDIR'
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.

RicardoDavis

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4 (yay!)
  • CMS version: 7
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
August 24, 2011, 07:57:03 am
Hershel, I forgot to note that updating sites/default/civicrm.settings.php was the first thing that I changed with no success.  So I started looking for other places in CiviCRM that might have the path defined.

Where else should I check?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
August 24, 2011, 08:06:39 am
That is the only place the path is defined. It's cached in the DB however, so run

Code: [Select]
UPDATE `civicrm_domain` SET `config_backend`=NULL ;
to clear that. Then try again.
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.

RicardoDavis

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4 (yay!)
  • CMS version: 7
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
August 24, 2011, 10:18:26 am
 That fixed the problem Hershel!  Thanks for your help.   ;D

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
November 09, 2011, 06:00:27 am
after updating my civicrm.settings.php file, I got that error that could not be configured. So I did the sql "update civicrm_domain" suggestion and now I get a server error:

The website encountered an error while retrieving http://[website]/administrator/index2.php?option=com_civicrm&task=civicrm/admin&. It may be down for maintenance or configured incorrectly.

I see nothing in my apache2 log. Any suggestions?

~r

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
November 09, 2011, 06:03:39 am
Hi. Not sure exactly what your situation is, but I would suggest that you change the name of your civicrm.settings.php file, then install CiviCRM fresh on a different database, and then you can use that new, good, civicrm.settings.php file and just change the DB access strings. With Joomla, you may need to reinstall Joomla itself in the new DB also, but same idea--just rename your config file temporarily and when you're done, put it back as it was.
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.

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
November 09, 2011, 07:11:05 am
Well, the situation is me moving my civi install and trying some testing on a test server. So I'd like a copy set up. I was hoping that all I'd have to do is make copies of the joomla and civi databases and directory structures, change the info in the civicrm.settings.php file. Root dir and such, and everything would be alright.

I'm not sure why, after changing the root directory... the root directory isn't being read from, and civicrm is still trying to use the previous one.

~r

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
November 10, 2011, 05:17:03 am
Success! I found a Drupal forum thread that suggested emptying the templates_c directory. This is located at /[site]/media/civicrm/templates_c/ in joomla, so that was the only research.

And this fixed it! So there it is. I made sure my root dir was updated in my civicrm.settings.php file, then I set the config_backend to NULL in civicrm_domain table, and finally, I emptied the templates_c folder.

Hope this helps anyone else with this problem. Solved for myself!

~r

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error on migration of a CiviCRM 3.1 site to another hosting environment
November 10, 2011, 05:21:35 am
Yes, our wiki says the same thing on the Migration page http://wiki.civicrm.org/confluence/display/CRMDOC32/Moving+an+Existing+Installation+to+a+New+Server+or+Location in step 5.
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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error on migration of a CiviCRM 3.1 site to another hosting environment

This forum was archived on 2017-11-26.