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 after uploading site from dev machine
Pages: [1]

Author Topic: Error after uploading site from dev machine  (Read 1248 times)

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Error after uploading site from dev machine
July 08, 2009, 06:40:21 pm
Hello,

I upgraded to CiviCRM 2.2.7 on my development box at home and it's working nicely. Then I uploaded both databases (including Drupal, since I had set permissions for CiviReport) to our hosted test server. I replaced sites/all/modules/civicrm with the 2.2.7 version, set config_backend to NULL, cleared Drupal caches but now I only get the following error:

Quote
Error: Could not create directory: /usr/www/users/myusername/mysubdomaindirectory/sites/all/modules/civicrm/en_US/.

If you have moved your database from a development install to a production install and the directory paths are different, please set the column config_backend in the civicrm_domain table to NULL. You will need to reinitialize your settings in the production install.

I'd already set config_backend to NULL. I'm not sure why there is an attempt to create sites/all/modules/civicrm/en_US/ since I thought that was supposed to go in /sites/default/files/civicrm/templates_c. I then deleted templates_c, but I still get the same error.

I've done this migration before without this error. Any ideas what's up and what I can do?

coryms

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: Error after uploading site from dev machine
July 08, 2009, 08:13:52 pm
Had the same problem from a clean install with Drupal 6.13 and Civi 2.2.7.  Did an install with 6.12/2.2.7 just yesterday on the same server but a different account and it worked fine with zero issues.  Then I realized I made the same mistake about a week ago and left PHP safe mode on messing everything up.
« Last Edit: July 08, 2009, 08:29:15 pm by coryms »

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Error after uploading site from dev machine
July 09, 2009, 06:53:23 am
Thanks coryms, Safe Mode is off in my case, however. And I'm still on Drupal 6.12 until this gets cleared up.

farmrchrys

  • I post occasionally
  • **
  • Posts: 92
  • Karma: 2
    • Spokane Moves to Amend the Constitution (under development)
  • CiviCRM version: CiviCRM 4.4.6
  • CMS version: Drupal 7.31
  • MySQL version: MySQL 5.5.37
  • PHP version: PHP 5.3.28
Re: Error after uploading site from dev machine
July 09, 2009, 06:24:55 pm
I had multiple problems but now it seems to be working fine. Whew! Now I can get back to testing the new reporting features.

Somehow my CiviCRM settings file had /sites/all/modules/civicrm/en_US/ as the template compiler location instead of /sites/default/files/civicrm/templates_c. No idea how that happened, but once that was fixed, off I went merrily to my next error message:

Quote
Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in /home/blah/public_html/drupal/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php:217...

Luckily I found this when searching for that error: "How to move CiviCRM to another location"
http://akekarat.com/content/how-move-civicrm-another-location

I can't attest to all of the info in this article, but one piece that did the trick was this:

Quote
[when migrating CiviCRM, you should also] delete /civicrm/upload/Config.IDS.ini (contains URL values and will be rebuilt with correct settings if deleted)

In the past, deleting templates_c fixed a lot of problems after a migration. From now on, I'll also routinely delete Config.IDS.ini as well.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error after uploading site from dev machine

This forum was archived on 2017-11-26.