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 (Moderator: Dave Greenberg) »
  • Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
Pages: [1]

Author Topic: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken  (Read 2704 times)

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 22, 2008, 10:00:17 pm
Hello,

We just moved our Drupal 5.7/CiviCRM 1.9 site a new host. I have been able to get the site up and running, but whenever I view CiviCRM pages they are not being rendered properly. All CiviCRM icons and theming are missing.

Is there a way to fix this?

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: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 22, 2008, 10:36:07 pm

most likely your resource url is still pointing to an old / invalid site

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

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 23, 2008, 09:16:49 am
I just double-checked and all the values on the Resource URLs page are correct and all the values on the Directories page are also correct. Is there a specific value that points to the CiviCRM themes? Is this value cached at all in the database?

MacRonin

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 14
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 23, 2008, 11:20:41 am
Just to play it safe have you tried clearing both the CiviCRM and drupal caches? I think the CiviCRM cache is stored by Smarty, which is the templating system that CiviCRM uses. So it may still have the old locations.

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 23, 2008, 01:29:53 pm
I have cleared the Drupal cache, but not the CiviCRM cache. How do I clear that?

I agree, that sounds like the problem. I've double checked all the settings, including the civicrm.settings.php file, and they are all correct. So, I do think this is a cache issue.

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 23, 2008, 03:40:27 pm
I found a way to fix this problem. I briefly scanned the code that adds the CSS files to the Drupal page and then added this line to my civicrm.settings.php file:

Code: [Select]
define( 'CIVICRM_UF_RESOURCEURL', 'http://[i]myurl[/i]/sites/all/modules/civicrm/' );

And that fixed the problem. Please let me know if there is a better way to solve this issue, as we never had to set this constant on our old host.

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 24, 2008, 07:44:39 am
I spoke too soon. That fixed the template issue, but now all of CiviCRM's settings are immutable. I tried to change some of the values in Global Settings (such as turning debugging on) and the settings never stick. I think I am going to just have to install CiviCRM again on the new host and import all the old data somehow.

Has anyone else ever had to move a CiviCRM install? If so, what worked and what didn't work for you? Any tips would be greatly appreciated.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 24, 2008, 01:10:04 pm
You can try removing that constant from the settings file. Then force CiviCRM to re-intialize configuration settings for the new "location" by using MySQL PMA or command line to set the value of civicrm_domain.config_backend to NULL

Pretty sure lots of folks have moved installs - and used this technique to clear old settings. Note that you'll have to review your Global Settings after this and add back in things that are not default values as needed.
Protect your investment in CiviCRM by  becoming a Member!

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken
March 25, 2008, 11:24:08 am
Wow. That worked perfectly.

Thank you very much.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Moved CiviCRM 1.9 to a new host and now CiviCRM templates are broken

This forum was archived on 2017-11-26.