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) »
  • Problem changing domain name
Pages: [1]

Author Topic: Problem changing domain name  (Read 1773 times)

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Problem changing domain name
December 08, 2010, 10:03:08 am
I changed the domain for a test server and now I am getting a mix of links with the old domain name and the new domain name. The majority of the links are correct, but the links to contribution pages still show the old domain name and the system workflow templates still show the old domain name as well as a few other spots. In addition, I can't force secure url's because the ssl cert is for the new domain, but the validation checks for enabling ssl must be using the old domain.

I changed the base_url in the config, rebuilt the menus, reset the backend config and emptied my templates_c folder. I also searched through the civicrm db for any references to the old domain and there are none. Is there anything else I need to do to get my install to work with the new domain?

Thanks for your help

Q
Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Problem changing domain name
December 09, 2010, 01:09:42 am
You might want to following these steps

1. First logged out ( in case logged in user )
2. Go to sites/default/civicrm.settings.php  ( do check for 'CIVICRM_UF_BASEURL' and make sure it should point to correct domain url )
3. Go to sites/default/settings.php ( do check for $base_url, if enabled and defined make sure it should point to correct domain )
3. Clear your browser cache as well as clear template cache ( purge all contents from files/civicrm/templates_c/ )
4. Reset the config backend ( empty content of config_backend column from civicrm_domain table )   
5. Now logged In.
6. Rebuild the menu ( run civicrm/menu/rebuild?reset=1 )

hopefully everything should get on track !!!

kiran
You Are Designed To Choose... Defined By Choice.

qjensen

  • I post frequently
  • ***
  • Posts: 141
  • Karma: 11
    • Scaled Solutions
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Problem changing domain name
December 09, 2010, 03:39:55 am
Hi Kiran,

Thanks for the suggestions. It turns out that my updated civicrm.settings.php file wasn't being uploaded. I ssh'd into my server to clear the templates_c directory one last time and I decided to check the copies of the settings files on the server. When I looked at the civicrm settings file, it still had the old domain name. I deleted the file from the command line and re-uploaded the changed version and everything worked.

I don't know why it was never overwritten, but I will check more carefully in the future.

Quint Jensen
Web Developer
Scaled Solutions
--" Remove the 'I want you to like me' notes from your forehead and place them where they truly will do the most good -- on your mirror!" Author Unknown

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Problem changing domain name
December 12, 2010, 11:19:25 pm
You probably had the file perms set to 655 or lower and there was a username or group conflict.

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

This forum was archived on 2017-11-26.