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 (Moderator: Dave Greenberg) »
  • Host Moved Site to New Server=This Error Message
Pages: [1]

Author Topic: Host Moved Site to New Server=This Error Message  (Read 1690 times)

crucialarts

  • Guest
Host Moved Site to New Server=This Error Message
August 01, 2009, 06:20:27 am
Hi,

My host (Dreamhost) moved a client's site to a new server and now all the CiviCRM pages are getting this error.  Can someone please tell me what to do to fix this.  Thanks

Error Message
-------------
Fatal error: Uncaught exception 'Exception' with message 'Please make sure the IDS/tmp folder is writable' in /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php:187 Stack trace: #0 /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(131): IDS_Monitor->__construct(Array, Object(IDS_Init)) #1 /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #2 /home/abhjparty/www.abhjparty.com/jhome/components/com_civicrm/civicrm.php(76): CRM_Core_Invoke::invoke(Array) #3 /home/abhjparty/www.abhjparty.com/jhome/components/com_civicrm/civicrm.php(24): civicrm_invoke() #4 /home/abhjparty/www.abhjparty.com/jhome/libraries/joomla/application/component/helper.php(162): require_once('/home/abhjparty...') #5 /home/abhjparty/www.abhjparty.com/jhome/includes/application.php(124): JComponentHelper->renderComponent() #6 /home/abhjparty/www.abhjparty.com/jhom in /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php on line 187
--------------

Thanks!

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: Host Moved Site to New Server=This Error Message
August 01, 2009, 09:40:28 am

can u delete the directories:

/home/abhjparty/www.abhjparty.com/jhome/media/civicrm/upload
/home/abhjparty/www.abhjparty.com/jhome/media/civicrm/templates_c

thanx

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

crucialarts

  • Guest
Re: Host Moved Site to New Server=This Error Message
August 02, 2009, 04:19:44 pm
Hi Lobo,

Thanks for your response.  I did what you suggested and now I get:

Fatal error: Uncaught exception 'Exception' with message 'Please make sure the IDS/tmp folder is writable' in /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php:187 Stack trace: #0 /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(131): IDS_Monitor->__construct(Array, Object(IDS_Init)) #1 /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #2 /home/abhjparty/www.abhjparty.com/jhome/components/com_civicrm/civicrm.php(76): CRM_Core_Invoke::invoke(Array) #3 /home/abhjparty/www.abhjparty.com/jhome/components/com_civicrm/civicrm.php(24): civicrm_invoke() #4 /home/abhjparty/www.abhjparty.com/jhome/libraries/joomla/application/component/helper.php(162): require_once('/home/abhjparty...') #5 /home/abhjparty/www.abhjparty.com/jhome/includes/application.php(124): JComponentHelper->renderComponent() #6 /home/abhjparty/www.abhjparty.com/jhom in /home/abhjparty/www.abhjparty.com/jhome/administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php on line 187
-----------------------------

What should I do now?  Thanks for your help.
« Last Edit: August 02, 2009, 04:21:20 pm by crucialarts »

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: Host Moved Site to New Server=This Error Message
August 03, 2009, 04:22:55 pm

ensure u follow all the steps here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

if it still does not work, can u do

update civicrm_domain set config_backend = null;

and see if that helps

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

rasantiago

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
    • raSANTIAGO + Associates LLC
Re: Host Moved Site to New Server=This Error Message
August 17, 2009, 03:43:32 pm
This is a common problem we hit often.  Make sure and truncate the sites table. 

Through your favorite MySQL environment run the following:

truncate civicrm_domain

Then make sure that the civicrm.config.php is correct and then fire up civicrm

CiviCRM will see that the domain table is empty and from the config file recreate this entry.  This entry on the domain table has most of these settings being referenced in that error message.

Give that a try and see if it works.

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: Host Moved Site to New Server=This Error Message
August 17, 2009, 05:12:45 pm

wow, does this really work? do u mean truncate or do u mean setting the config_backend to null?

I suspect it wont work in 3.0 since domain_id is now an FK in a few tables (4-6) and hence truncating the table will make the db inconsistent?

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

rasantiago

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
    • raSANTIAGO + Associates LLC
Re: Host Moved Site to New Server=This Error Message
August 18, 2009, 11:16:42 am
Its a standard technique for us.  We have not hit a db inconsistency as a result.  We have used this approach starting in 2.2.1 going through 2.2.8.

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: Host Moved Site to New Server=This Error Message
August 25, 2009, 06:45:26 am

spoke to deepak about this. and yes it does work in 2.2.x

However we dont recommend it, since we create an empty domain record with just the config_backend filled in. This also destroys the version information and hence messes up future upgrades

in 3.0 this is unlikely to work, since domain_id is now an FK to some other table (civicrm_menu, ...)

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Host Moved Site to New Server=This Error Message

This forum was archived on 2017-11-26.