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) »
  • Problems Migrating Servers
Pages: [1]

Author Topic: Problems Migrating Servers  (Read 5488 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Problems Migrating Servers
January 11, 2009, 03:01:22 am
Someone migrated a Drupal 6.8 CiviCRM v2.1 site to a new server but it's not working and I am trying to determine why. The error is:

Code: [Select]
Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.'
in /home/lyrictest/www/www/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php:220 Stack trace: #0 /home/lyrictest/www/www/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php(108): IDS_Filter_Storage->getFilterFromXML()
#1 /home/lyrictest/www/www/sites/all/modules/civicrm/packages/IDS/Monitor.php(167): IDS_Filter_Storage->__construct(Object(IDS_Init))
#2 /home/lyrictest/www/www/sites/all/modules/civicrm/CRM/Core/IDS.php(112): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 /home/lyrictest/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #4 /home/lyrictest/www/www/sites/all/modules/civicrm/drupal/civicrm.module(315): CRM_Core_Invoke::invoke(Array) #5 [internal function]: civicrm_invoke('dashboard')
#6 /home/lyrictest/www/www/includes/menu.inc(348): call_user_func_array('civicrm_invoke', Array) #7 /home/lyrictest/www/www/index.php(18): menu_e in /home/lyrictest/www/www/sites/all/modules/civicrm/packages/IDS/Filter/Storage.php on line 220


and I see that on packages/IDS/Filter/Storage.php:220 if I display $this->source I see:

Code: [Select]
/home1/xxxx/public_html/sites/all/modules/civicrm/packages/IDS/default_filter.xml

which is the old directory I presume. I tried to set it to the new one:

Code: [Select]
$this->source=='/home/xxxx/www/www/sites/all/modules/civicrm/packages/IDS/default_filter.xml';

manually just to get past this but it still fails. I did set config_backend to NULL in the civicrm_domain record before, so I am not sure what to do now.
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.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problems Migrating Servers
January 11, 2009, 07:19:12 am

1. can u delete files/civicrm/upload/Config.IDS.ini and give it a shot

2. if that does not work, comment out line 74 of:

CRM/Core/Invoke.php: CRM_Core_IDS->check

and get the site working before uncommenting it

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Problems Migrating Servers
January 12, 2009, 02:37:11 am
Quote from: Donald Lobo on January 11, 2009, 07:19:12 am
1. can u delete files/civicrm/upload/Config.IDS.ini and give it a shot

That did it!

Thank you very much! :)
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.

ToddW

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
Re: Problems Migrating Servers
May 04, 2010, 04:25:53 pm
I'm having a similar problem. My site only works if the $ids->check($args) line is commented out of Invoke.php. No other errors if the line is commented out. Blank screen if it runs. Permissions are fine. the civicrm/upload dir is empty.

Any ideas? It's look for civicrm/packages/IDS/default_filter.xml in a path on the old server.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problems Migrating Servers
May 04, 2010, 07:50:56 pm

hey todd:

not sure what version u r using, but u might want to give the move script a try:

http://DRUPAL_URL/sites/SITENAME/modules/civicrm/bin/migrate/move.php?name=NAME&pass=PASS&key=KEY

This is there in 3.1.4 and later

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ToddW

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
Re: Problems Migrating Servers
May 11, 2010, 04:20:44 pm
Still the same problem even after running the move.php script on 3.1.4.

I can live with it though, this is just a demo install. I can keep the line in Invoke.php commented out.

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: Problems Migrating Servers
May 18, 2010, 07:04:30 pm
I have just upgraded a site from Version 2.2.9 to 3.1.4 and I am having the same problem. I have done all the tests and checks with upload directory, config.IDS.ini file etc etc but no luck. Any one else who could have resolved similar problem?

The site currently is running with line 74 commented. I wonder what effects it has got on CiviCRM.
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

mojolama

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Problems Migrating Servers
October 25, 2011, 10:56:03 pm
Just FYI, this is still can be an issue in V4.0.7.  Similar to a previous post, delete the file:

sites/default/files/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini

And try again.

caprenter

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7
  • MySQL version: 5ish
  • PHP version: 5.3
Re: Problems Migrating Servers
January 19, 2012, 02:40:37 am
Just to say, thanks this worked for me migrating Drupal7 and CiviCRM 4.0.8

I also had to alter to some config info in both /sites/default/files/settings.php and /sites/default/files/civicrm.settings.php (including the path to the installation).

I didn't use the migrate link given above (cos I was wading in without reading!), but all seems ok.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problems Migrating Servers

This forum was archived on 2017-11-26.