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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Avoiding 'set config_backend = null'
Pages: [1]

Author Topic: Avoiding 'set config_backend = null'  (Read 1792 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Avoiding 'set config_backend = null'
January 24, 2010, 10:51:09 am
Hi

I used to be quite trigger happy when it came to nulling the config backend in civicrm, thinking it wasn't a problem.

But (correct me if i am wrong but) this field contains two types of info: server and domain info and  civicrm config info, like what countries are available, what components you are using, etc.

So you can potentially lose a lot of information when nulling that field.  Just wanted to

*check this was true before adding a health warning to:
http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location warning people of this.

*check that NULLing config_backend is actually a sensible thing to suggest.  Is civicrm/admin/setting/updateConfigBackend&reset=1 any gentler?

*suggest that (though you've probably thought of this) you could seperate out the server and domain and config if that is trivial and that would make it less dangerous.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

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: Avoiding 'set config_backend = null'
January 24, 2010, 01:03:57 pm

nulling config_backend should not be your first solution. we recommend doing that ONLY if you are getting some fatal errors that we cannot recover from / interpret

The wiki page basically instructs you to do so only when everything else fails

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

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Avoiding 'set config_backend = null'
January 25, 2010, 02:31:07 am
ok - thanks - have made this more explicit in the documentation with a warning tag
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Avoiding 'set config_backend = null'
January 25, 2010, 03:40:02 am
And I just understood while my upgrades did reset some configuration (eg list of countries ;)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Avoiding 'set config_backend = null'
March 19, 2010, 07:29:28 am
Just to say big thanks for creating that upgrade script.  Not sure when you added it but in 3.1.3 I was asked if I wanted to run it and it worked like a dream!  No having to null config_backend makes a big difference when switching sql dumps between servers - saves the precious brain cells and helps me keep cool - must be the same for lots of others, so thank you :)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Avoiding 'set config_backend = null'
March 19, 2010, 08:01:08 am
What script are you so in love with and can it be called directly ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Avoiding 'set config_backend = null'
March 21, 2010, 11:49:47 am
you'll come across it when you upgrade to 3.1.3 and move servers.  It's a URL so I am presuming yes...
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Avoiding 'set config_backend = null'

This forum was archived on 2017-11-26.