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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problems after moving from subdomain to main domain.
Pages: [1]

Author Topic: Problems after moving from subdomain to main domain.  (Read 3062 times)

geraldr_sc

  • Guest
Problems after moving from subdomain to main domain.
November 28, 2008, 09:12:04 pm
I upgraded joomla to 1.5.8 and then upgraded civicrm to 2.1.2. However, I did this on a subdomain rather than the live site. I then moved the older version from the live site and copied the new installation to the live directory. I thought I can modified all the references to the temporary subdomain, but I still have am having trouble.

When I initially still had the temporary subdomain, everything seemed to work except a displayed link to the initial subdirectory in the civievents manage events page.  However, when I renamed the initial subdomain directory to something different, nothing worked in civicrm, though the rest of joomla works. Civicrm also works as long as the initial subdirectory is there for it to find what it needs.

I searched the database and the directory for a reference to the original subdomain URL or path and found them in the following files which I changed:
administrator/components/com_civicrm/civicrm/civicrm.config.php
administrator/components/com_civicrm/civicrm.settings.php
components/com_civicrm/civicrm.settings.php

I also searched the civicrm tables that seemed relevant by the name and found no references.

Where might the initial domain url be coming from?

I had already modified the joomla configuration.php and I have not found any place in the rest of joomla where the initial subdomain directory is listed. I searched for both the path and the url.

I get the following error when I click civicrm home menu item (with the path below the joomla directory removed).

Fatal error: Uncaught exception 'Exception' with message 'XML data could not be loaded. Make sure you specified the correct path.' in .../administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php:217 Stack trace: #0 .../administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php(108): IDS_Filter_Storage->getFilterFromXML() #1 .../administrator/components/com_civicrm/civicrm/packages/IDS/Monitor.php(167): IDS_Filter_Storage->__construct(Object(IDS_Init)) #2 .../administrator/components/com_civicrm/civicrm/CRM/Core/IDS.php(112): IDS_Monitor->__construct(Array, Object(IDS_Init)) #3 .../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(74): CRM_Core_IDS->check(Array) #4 .../administrator/components/com_civicrm/admin.civicrm.php(45): CRM_Core_Invoke::invoke(Array) #5 .../administrator/components/com_civicrm/admin.civic in .../administrator/components/com_civicrm/civicrm/packages/IDS/Filter/Storage.php on line 217

Any help is appreciated.
Gerald

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: Problems after moving from subdomain to main domain.
November 28, 2008, 11:12:56 pm
Can you check: http://forum.civicrm.org/index.php/topic,4712.0.html

HTh

Kurund
Found this reply helpful? Support CiviCRM

geraldr_sc

  • Guest
Re: Problems after moving from subdomain to main domain.
November 29, 2008, 06:25:59 am
That helped.  I can get into civicrm now. But the links on the left after I first get into civicrm are still to the old url:

# CiviCRM Home
# Find Contacts
# Manage Groups
# Import
# CiviContribute
# CiviPledge
# CiviMail
# CiviEvent
# Administer CiviCRM
# Log out

The shortcut links below those, however, use the correct path.

The horizontal menu has the correct url

---- update ----
I just did a search of the mysqldump file of the site and found the old url in the civicrm_menu table but in no other table. Later today I will try replacing the instances of the wrong url in that table with the correct one.

Gerald
« Last Edit: November 29, 2008, 06:52:59 am by geraldr_sc »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problems after moving from subdomain to main domain.
November 29, 2008, 07:17:03 am

you can either truncate the civicrm_menu table using PHPMyAdmin (it will rebuild it if empty) OR run the url:

administrator/index2.php?option=com_civicrm&task=civicrm/menu/rebuild&reset=1

to do the needful

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

geraldr_sc

  • Guest
Re: Problems after moving from subdomain to main domain.
November 29, 2008, 08:46:45 am
Wonderful. Truncating the table worked.

Thank you,
Gerald

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Problems after moving from subdomain to main domain.

This forum was archived on 2017-11-26.