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) »
  • Changing Site URLs
Pages: [1]

Author Topic: Changing Site URLs  (Read 2064 times)

kyle.vh

  • Guest
Changing Site URLs
August 22, 2008, 09:35:01 am
Hi:
Drupal 5.10, CiviCRM 2.0.5
I installed CiviCRM and the Base URLs got written as www.olddomain.com, but now I've changed my URL to www.newdomain.org. Now there are two problems:
1)CiviCRM looks funny (i think there css or images aren't displaying)
2)As I navigate, all the links are for www.olddomain.com/XXXX (so I have to type in the URL).

So I followed the instructions here:
http://wiki.civicrm.org/confluence/display/CRMDOC/Base+URL+Change
I emptied the contents of files/civicrm/templates_c/
But when I go to:
www.olddomain.com/civicrm/admin/setting/url?reset=1
and change the URLs, and click save, I am returned to:
www.olddomain.com/civicrm/admin/setting/url
AND the URLs in the text fields haven't been changed!!

-To be clear: I can't change the Resource URLs (!), when I hit save, I'm returned to the old URL page and they are back to the old URL again.

What can I do? Please help, and note that I'm not to code savvy :)
« Last Edit: August 22, 2008, 09:47:26 am by kyle.vh »

kyle.vh

  • Guest
Re: Changing Site URLs
August 22, 2008, 09:58:42 am
Ok,

I fixed this by modifying the Base URL in my civicrm.settings.php file, even though the file suggests you should do this through the GUI.

Yeay!!!  ;D

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: Changing Site URLs
August 22, 2008, 10:11:07 am
To change Base Url:
http://wiki.civicrm.org/confluence/display/CRMDOC/Base+URL+Change

To change Resource Url goto
http://.........../civicrm/admin/setting/url?reset=1 and fix the resource url.

But note that you need  have correct Base Url before changing Resource Url.

HTH

Kurund

Found this reply helpful? Support CiviCRM

rontec76

  • Guest
Re: Changing Site URLs
September 04, 2008, 11:44:13 am
I'm having a similar issue and have followed all the above instructions.

I don't see my old domain referenced anywhere but the civicrm images and css files still aren't liked properly for some reason.

My civicrm.settings.php files is updated with new paths as well. It's as though something is not aliased correctly?

Any other advice?

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: Changing Site URLs
September 04, 2008, 12:01:49 pm
Can you clear your cache and check resource urls http://sandbox.civicrm.org/civicrm/admin/setting/url?reset=1

Kurund
Found this reply helpful? Support CiviCRM

rontec76

  • Guest
Re: Changing Site URLs
September 04, 2008, 12:47:54 pm
Yes I have. I just checked all that again to be sure.

Also, not sure if this is related at all but when I go the the resource url page I'm getting a php error at the top of the page:

Code: [Select]
warning: Invalid argument supplied for foreach() in /home/content/r/h/j/rhjwl/html/sites/all/modules/civicrm/CRM/Core/Config/Defaults.php on line 203.

Like I said...I read through both of the solutions you posted links to above. As far as I can tell the domain name shows correctly in the page source but the css and images are still not linked up correctly.

Thanks for responding quickly on this. Any other thoughts are greatly appreciated. I'm to the point where I'm almost willing to pay someone to look at it. I'm a developer and am very familiar with php and server configurations but I can't figure this out and I'm just short on time.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Changing Site URLs
September 04, 2008, 11:31:05 pm
Click on view source of any page & look at top 20-40 lines which 'll show you which css & js files being used along with full path, something like -

<style type="text/css">@import url(http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/modules/civicrm/css/civicrm.css);</style>
<style type="text/css">@import url(http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/modules/civicrm/css/skins/aqua/theme.css);</style>
<script type="text/javascript" src="http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/modules/civicrm/packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, usePlainJson: true" ></script><script type="text/javascript"

You can click on one of those links to find out if they pointing to right file, if not you'll receive a page not found error. In case of error try correcting the url in the browser till it grabs the right file, which will also help you identify correct resource-url.
« Last Edit: September 05, 2008, 12:46:35 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

rontec76

  • Guest
Re: Changing Site URLs
September 05, 2008, 08:59:17 am
Interesting point.... see some of my page source below. Looks like the url's for the civicrm files are relative paths.

Code: [Select]
<style type="text/css">@import url(css/civicrm.css);</style>
<style type="text/css">@import url(css/skins/aqua/theme.css);</style>
<script type="text/javascript" src="packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, usePlainJson: true" ></script><script type="text/javascript" src="packages/dojo/dojo/commonWidgets.js"></script>
<style type="text/css">@import url(packages/dojo/dijit/themes/tundra/tundra.css);</style>

Maybe that is the issue?

rontec76

  • Guest
Re: Changing Site URLs
September 05, 2008, 09:12:18 am
I'm starting to think there are other things screwed up in my site since moving to a new host. I'm getting a lot of php warnings in the admin area of civicrm and. Also I've started getting "an unrecoverable error" when performing certain actions such as editing a contact.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Changing Site URLs
September 05, 2008, 09:59:55 am
Quote
<style type="text/css">@import url(css/civicrm.css);</style>
<style type="text/css">@import url(css/skins/aqua/theme.css);</style>

Thats a clear indication of your resource-url not set (since i can notice the same if i unset my resource-url). I would do following in this case:

1. Try resetting (set NULL) config_backend column of civicrm_domain table.
2. Make sure all the settings in civicrm.settings.php file are correct/valid.
3. Again set the resource-url from "Administer CiviCRM >> Global Settings >> Resource URLs" screen and check.
« Last Edit: September 05, 2008, 10:12:16 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

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: Changing Site URLs
September 05, 2008, 12:26:35 pm
rontec76:

In addition to Deepak's suggestions, first can you check if you have set "CIVICRM_UF_BASEURL" correctly in your civicrm.setting.php

Kurund
Found this reply helpful? Support CiviCRM

rontec76

  • Guest
Re: Changing Site URLs
September 05, 2008, 01:26:49 pm
Thanks so much Deepak. Those steps did it.

The actual fix was setting the 'config_backend' column to NULL. Before resetting it there was the value 'N;' in there for some reason. After setting that value I went to the Resource URL area and everything showed up correctly.

I guess somewhere during the migration process that value got buggered up.

Thanks so much!!!!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing Site URLs

This forum was archived on 2017-11-26.