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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • New Domain conflics with old Dev URL
Pages: [1]

Author Topic: New Domain conflics with old Dev URL  (Read 2686 times)

EmperorNeo

  • Guest
New Domain conflics with old Dev URL
September 17, 2009, 02:28:55 am
I installed CiviCRM 2.2.8 in Joomla Version 1.5.10. I developed it on my server and basically the address was http://www.MyDomain.com/websites/client_name/
Now that it's all ready to go i directed the clients domain name to that folder, now the client can goto http://www.ClientURL.com and it comes up BUT i have serious issues with the backend and some of the front end forms.  CiviCRM still wants to direct information to the old address of http://www.MyDomain.com/websites/client_name/
I know this is a migration problem, but can anyone tell me which tables and files need to be edited so that civi finally knows it's new home is http://www.ClientURL.com

I'd really appreciate any help that can be given. This problem is driving me nuts.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: New Domain conflics with old Dev URL
September 17, 2009, 03:28:32 am
Check http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location.

Quote
I know this is a migration problem
Its a good practice to do some homework before doing a post (like searching forum/net ..).
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

EmperorNeo

  • Guest
Re: New Domain conflics with old Dev URL
September 17, 2009, 03:31:20 am
Thanks, for the help...i'm sure its the fix i needed.

EmperorNeo

  • Guest
Re: New Domain conflics with old Dev URL
September 17, 2009, 10:42:11 am
Ok, let me explain what happend when i followed the instructions from the link you sent me.
These are the steps:
1. Joomla: Update the following file to use the correct path:
    * /administrator/components/com_civicrm/civicrm/civicrm.config.php

2. Delete files with cached settings
    * Joomla:
          o <joomla-root>/media/civicrm/upload/Config.IDS.ini
          o <joomla-root>/media/civicrm/templates_c/*

3. Login to Joomla Administrator and enter the following URL in your browser:
    * Joomla sites: http://<joomla_site>/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1

When i got here i was taken to the "Settings - Update Directory Path and URL" page in Civi
(This page shows the following information)

Old Base Directory: /home/james/public_html/websites/client_folder/media/
New Base Directory *: /home/james/public_html/websites/client_folder/media/

Old Base URL: http://www.ClientSite.com/
New Base URL *: http://www.ClientSite.com/

Now, when i click "SAVE" I get the following error message

Sorry. A non-recoverable error has occurred.

Could not find valid Key

Return to home page.


Please, what am i doing wrong?

Thanks for helping me.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: New Domain conflics with old Dev URL
September 18, 2009, 12:42:32 am
There is also a note mentioned in the doc itself -
Quote
If navigating to http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1 causes a fatal error (white screen o' death, segmentation fault in the httpd log), try setting the config_backend field in the mysql civicrm_domain table to NULL. Each time one runs http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1, this database field is repopulated with new configuration paths. The problem is, after migration one cannot run http://<drupal_site>/civicrm/admin/setting/updateConfigBackend?reset=1 with the old paths in the config_backend field w/o a dramatic crash (white screen o death). If this doesn't work, another option is trying to change the paths to the new correct paths in the config_backend field in the civicrm_domain table.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

EmperorNeo

  • Guest
Re: New Domain conflics with old Dev URL
September 18, 2009, 12:52:43 am
If the old base directory was: "Old Base Directory: /home/james/public_html/websites/client_folder/media/" then is it safe to assume that the new base directly would be "http://www.ClientSite.com/media/"
would this be the right setting for this? I am curious because i think my only option is to manually change the value in the database table. So i want to make sure this is right before i tamper with it. Thanks.

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: New Domain conflics with old Dev URL
September 18, 2009, 01:13:43 am
Quote
is it safe to assume that the new base directly would be "http://www.ClientSite.com/media/"
Nope, it requires absolute directory path, which looking at previous message anyway not working. Go for manual option.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

EmperorNeo

  • Guest
Re: New Domain conflics with old Dev URL
September 21, 2009, 10:26:57 am
Ok, after days of not getting this i'm at a dead end. Anyone with Paypal want to resolve this issue for me, what's your price?

Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: New Domain conflics with old Dev URL
September 21, 2009, 11:11:07 am
The only other place i can think of is civicrm.settings.php file which might still have old settings
1. <joomla_root>/components/com_civicrm/civicrm.settings.php and
2. <joomla_root>/administrator/components/com_civicrm/civicrm.settings.php.

Please double check. And after you have adjusted the settings again repeat the manual process (updateconfigbackend).

And if still doesn't work for you, contact http://civicrm.org/professional.
« Last Edit: September 21, 2009, 11:12:42 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

EmperorNeo

  • Guest
Re: New Domain conflics with old Dev URL
September 21, 2009, 11:41:06 am
When i goto Customize/Update Directory Path and URL i got a 404 page error in the backend. The url says the following
http://www.clientwebsite.com/websites/client_folder/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1
When it should really be
http://www.clientwebsite.com/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: New Domain conflics with old Dev URL
August 01, 2011, 05:01:39 pm
Still in 4.0.4, this still reacts the same after changing the domain name. There could be a script that NULL that table. If I knew how, I would have done it already.
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: New Domain conflics with old Dev URL
August 01, 2011, 05:15:18 pm
I was having a similar problem with the old base URL coming up even though I changed all the settings/config files appropriately, NULL'd config_backend in civicrm_domain table.

Using the below just continued to give me a 404 error. It will only respond to the original Base URL and not the new one.
Code: [Select]
http://<joomla_site>/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1
Bump.
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • New Domain conflics with old Dev URL

This forum was archived on 2017-11-26.