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) »
  • Resource URL will not save
Pages: [1]

Author Topic: Resource URL will not save  (Read 2311 times)

Keith

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Resource URL will not save
April 24, 2013, 06:10:41 am
I recently moved our civi site from one server to another. In the process, the domain name changed.

Now, every time I attempt to change the CiviCRM Resource URL, the system will modify it.

E.g., I set the URL as
Code: [Select]
https://contacts.ourdomain.com/sites/all/modules/civicrmafter save if I open the resource setting page again, it says:
Code: [Select]
https://contacts.ourdomain.com/,
  stripping the path information.

Obviously this is a problem, because all of my javascript and some images do not load properly.

I HAVE set
Code: [Select]
define( 'CIVICRM_UF_BASEURL'      , 'https://contacts.ourdomain.com/' );

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Resource URL will not save
April 24, 2013, 06:23:32 am
Did you clear your template cache?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Keith

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Resource URL will not save
April 24, 2013, 06:37:11 am
I deleted /sites/default/files/ConfigAndLog
and
/sites/default/files/templates_c
folders as well as cleared drupal cache and set all drupal caches disabled.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Resource URL will not save
April 24, 2013, 07:56:22 am
Can you execute the URL civicrm/admin/setting/updateConfigBackend&reset=1 and run this SQL also:

UPDATE `civicrm_domain` SET `config_backend`=NULL ;
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Keith

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Resource URL will not save
April 24, 2013, 08:35:14 am
Thank you for your patience!  ??? ???

This is what I have done in the following order with no intervening activity:

1. run the sql command UPDATE `civicrm_domain` SET `config_backend`=NULL ;
2. Run the URL civicrm/admin/setting/updateConfigBackend&reset=1
3. When it brings up the Setting screen, I hit Clean Cache. The other settings are correct on this screen.
4. Opened the Resource URL screen. It shows only the domain name (no path info). I set it to the correct value then saved
5. Reopenned the Resource URL screen. It still stripped off the path portion (/sites/all/modules/civicrm) of the resource URL

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Resource URL will not save
April 24, 2013, 09:06:29 am
The domain when you visit the URL Settings page and also after you save, is the same?

What you could try is to install fresh on this server, in a temp DB, and then compare civicrm.settings.php new and old to be sure. Then consider copying the tables civicrm_domain and civicrm_settings from new to old DBs.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Keith

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Resource URL will not save
April 24, 2013, 09:09:46 am
Thanks. Don't really like that answer, but may have to do that.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Resource URL will not save

This forum was archived on 2017-11-26.