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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Resetting the Base Directory Path and Base URL won't work.
Pages: [1]

Author Topic: Resetting the Base Directory Path and Base URL won't work.  (Read 2301 times)

NilsHenrik

  • Guest
Resetting the Base Directory Path and Base URL won't work.
June 16, 2010, 12:38:53 pm
Hi.

When resetting the Base Directory Path and Base URL (I moved the joomla site http://artoutlet.org out of its sub directory 'reaction'), I get this error:

Warning: file_put_contents(/homepages/11/d130393756/htdocs/artoutlet/reaction/media/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini) [function.file-put-contents]: failed to open stream: No such file or directory in /homepages/11/d130393756/htdocs/artoutlet/administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php on line 118
We could not write /homepages/11/d130393756/htdocs/artoutlet/reaction/media/civicrm/templates_c/en_US/ConfigAndLog/Config.IDS.ini. Have you moved your site directory or server?

Please fix the setting by running the update config script

Well the link leads back to running the config update.

One thing I noticed is: that the new and old directory are the same...? See screen shot.
I am running Joomla 1.5.8, PHP Version 5.2.13 , and CivicRM 3.1.5. It worked fine in it's sub directory. Double checked both php settings files, too.

Any suggestions.  Henrik

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Resetting the Base Directory Path and Base URL won't work.
June 18, 2010, 07:33:29 am
Did you run this SQL after you moved the site:

Code: [Select]
UPDATE civicrm_domain SET config_backend = NULL WHERE id = 1;
I think that may fix this.
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.

NilsHenrik

  • Guest
Re: Resetting the Base Directory Path and Base URL won't work.
June 18, 2010, 11:33:46 am
Hi, could you please explain a little more. How would I run this script?

Greetings, Henrik

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Resetting the Base Directory Path and Base URL won't work.
June 18, 2010, 12:16:37 pm
Henrik,

you also need to update UF Base url in civicrm.settings.php

../components/com_civicrm/civicrm.settings.php
../administrator/components/com_civicrm/civicrm.settings.php

HTh
Kurund
Found this reply helpful? Support CiviCRM

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Resetting the Base Directory Path and Base URL won't work.
June 19, 2010, 01:12:18 pm
The code above in "Reply #1" is an SQL query. To run it, you need access your MySQL database. Most web hosts provide a tool called phpMyAdmin for that. If you have that, open it up, select your CiviCRM database on the left and then click on SQL on the right and then put the query I provided into the box and run it.

Then you probably have to edit the text files, as Kurund mentioned above.
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.

NilsHenrik

  • Guest
Re: Resetting the Base Directory Path and Base URL won't work.
June 21, 2010, 12:37:53 pm
Hi guys, I did update the files:

../components/com_civicrm/civicrm.settings.php
../administrator/components/com_civicrm/civicrm.settings.php

As far as the SQL query goes, this is beyond my knowledge. Whom can I contact to pay for fixing my issue? I am afraid I would mess up our MySQL database.

I need to be able to work with our database contacts.  Thanks, Henrik

NilsHenrik

  • Guest
Donated.
June 22, 2010, 10:25:13 am
Hi, mys art group Art Outlet just donated to CivicRM. I also wanted to thank all the moderators. You are doing a great job.

Henrik

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Resetting the Base Directory Path and Base URL won't work.
June 22, 2010, 10:56:05 am
Happy to help.
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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Resetting the Base Directory Path and Base URL won't work.

This forum was archived on 2017-11-26.