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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • [solved] activity loses relation after migration
Pages: [1]

Author Topic: [solved] activity loses relation after migration  (Read 995 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
[solved] activity loses relation after migration
June 29, 2009, 03:20:19 pm
I quite often manage to create odd issues, this is in case someone else manages to do the same!

Symptom:

When a new activity is created for a contact the "with contact" field is not populated - this leads on to errors when saving.

Circumstances:

Following migration from one server to another

I'd migrated a site and of course tested it before changing the nameservers at the registrars. I'd used the domain (http://mydomain.org) whilst the live site was using the www. subdomain

Later when things were changed over I was using both quite happily to access the site until the above error cropped up. I presume this is caused by confused sessions.

Solution

Changed the .htaccess in the domain root to redirect to the sub-domain - so when user types in http://mydomain.org it re-interprets the string as www.mydomain.org)

Ensured that all references to the domain url were set consistently to www.etc. References are in:

  • Drupal settings.php
  • civicrm.settings.php
  • resource url's (civicrm admin)

Finally cleared drupal cache

 :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • [solved] activity loses relation after migration

This forum was archived on 2017-11-26.