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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • update civicrm.settings.php by upgrade version
Pages: [1]

Author Topic: update civicrm.settings.php by upgrade version  (Read 1529 times)

HanV

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 0
update civicrm.settings.php by upgrade version
April 14, 2011, 04:25:07 am
I have done a upgrade from version 3.2.1 to version 4.0, but the information in  http://wiki.civicrm.org/confluence/display/CRMDOC40/Upgrade+Drupal+Sites+to+4.0#UpgradeDrupalSitesto4.0-8.Updatethecivicrm.settings.phpfile is not complete.

missing part: define('CIVICRM_TRACK_CIVIMAIL_REPLIES', false);
untill define('CIVICRM_PETITION_CONTACTS','Petition Contacts');

Maybe it is better to include the complete file to the zip-file and ask the user to check for any changes.
HanV

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: update civicrm.settings.php by upgrade version
April 14, 2011, 04:56:15 am
WOW - that was quick!

I only just posted that on the wiki an hour or so ago!

I will edit the wiki post to include that variable too (if upgrading from 3.2).

The best option would probably be for CiviCRM to assume defaults for these items if not in the configuration file though?

Regards

Andrew
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: update civicrm.settings.php by upgrade version
April 14, 2011, 05:00:50 am
And it would be good if the upgrade script also generated a default.civicrm.settings.php file that is placed in the sites/default or sites/<<url>> directory, so that you can diff the civicrm.settings.php and default.civicrm.settings.php to see what you are missing fairly quickly!
« Last Edit: April 14, 2011, 05:13:49 am by Andrew Perry »
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

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: update civicrm.settings.php by upgrade version
April 14, 2011, 10:21:57 am

hey andrew:

wanna get one of your developers to check the upgrade script and do the needful. Should not be too hard since we already do this for an install. The main stumbling block would be to get the user to open up write permissions for the settings directory when running the upgrade (or it could be made optional via a checkbox)

In general the rule for adding a new setting is:

1. avoid adding a "user centric" setting. Use DB based, UI configured settings as needed

2. The default behavior should be what we currently do. Any tweaked behavior for a special case is done via an internal setting. Overall we should avoid adding new settings

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

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: update civicrm.settings.php by upgrade version
April 15, 2011, 04:31:32 am
Are any of these settings used in 3.4? The 3.4 documentation doesn't mention changes to settings, but I notice installing 3.4 creates a 'Petition Contacts' group.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • update civicrm.settings.php by upgrade version

This forum was archived on 2017-11-26.