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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cannot edit global settings... migrate to new civicrm.settings.php?
Pages: [1]

Author Topic: Cannot edit global settings... migrate to new civicrm.settings.php?  (Read 2382 times)

neuromusic

  • Guest
Cannot edit global settings... migrate to new civicrm.settings.php?
June 23, 2007, 05:15:50 pm
Drupal 5.1
CiviCRM 1.7

It seems that I am still using my civicrm.setting.php file from civicrm 1.5. Upon attempting to "switch" to the 1.7 version of the file (now that most things are stored in the db), I've somehow lost all ability to edit any settings via the global settings page.

By just replacing the civicrm.setting.php file, I cannot edit my resource urls or payment processor settings or even enable debugging. How do I make the switch?

Thanks!
Justin

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Cannot edit global settings... migrate to new civicrm.settings.php?
June 23, 2007, 06:59:22 pm
Make sure the new civicrm.settings.php file was the correct required values (especially civicrm_root) and is in the right place. You can verify that it is being read by deliberately creating a syntax error and reloading your page.

Then delete the existing DB config settings by running this query:

UPDATE civicrm_domain set config_backend = '' WHERE id = 1;

( this assumes you are running CiviCRM using the default domain of 1 - modify if you're not ).
 
Protect your investment in CiviCRM by  becoming a Member!

neuromusic

  • Guest
Re: Cannot edit global settings... migrate to new civicrm.settings.php?
June 23, 2007, 10:02:13 pm
Beautiful! That query did it...

now... what did it do? :)

brandan

  • Guest
Re: Cannot edit global settings... migrate to new civicrm.settings.php?
December 28, 2007, 12:58:48 pm
i would call this thread a godsend, but i don't think god had anything to do with it.  it's more of a dave greenberg-send.  i don't know if this issue persists across versions other than 1.6 and 1.7 (i fixed my problem on a drupal 4.7 and civicrm 1.6 implementation), but if it does a huge button in the settings page that says 'reset cached root directory' would be nice.

i spent countless hours trying to find out what the hell was going on (more like 5).  just out of curiosity, what exactly is the logic behind defining $civicrm_root if it's superseded by a value in the database?

prickeke

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 4
Re: Cannot edit global settings... migrate to new civicrm.settings.php?
January 03, 2008, 10:43:12 pm
I ran into this problem (for the second time now v1.7) while moving to a new server.  My config_backend value was set to "N;"

This seems a little odd to me.  Can this value be removed?  What is it used for and can this be changed to make it easier to move to a new server?

Everything works for me now after this.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Cannot edit global settings... migrate to new civicrm.settings.php?
January 08, 2008, 09:16:54 pm
The config_backend column in civicrm_domain stores the bulk of the settings for that install / domain in a serialized form. For new installs, the code takes the civicrm_root value from the settings file (civicrm.settings.php) - and then makes best guesses about the other values we need - which it stores in that column in the DB.

When a site is "moved" - the stored values for things like base and resource URL are no longer valid. The quickest fix (as noted in this and other threads) is to manually set config_backend to NULL. This causes it to be populated with new (hopefully valid) values. HTH.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cannot edit global settings... migrate to new civicrm.settings.php?

This forum was archived on 2017-11-26.