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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade to 4.2 instructions: "Php settings overrides have changed" warning
Pages: [1]

Author Topic: Upgrade to 4.2 instructions: "Php settings overrides have changed" warning  (Read 490 times)

cri

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Upgrade to 4.2 instructions: "Php settings overrides have changed" warning
October 04, 2012, 01:32:17 am
Hi, while reading the upgrade instructions at wiki.civicrm.org/confluence/display/CRMDOC42/Upgrade+Drupal+Sites+to+4.2+-+Drupal+7 (HEY! this forum doesn't allow to post links to wiki.civicrm.org!) I'm quite puzzled by the "Php settings overrides have changed" warning section.

1. The section doesn't mention the civicrm.settings.php file explicitly

2. The section doesn't explain WHAT the user should do about this. One could be tempted to change all the define(...)  statements in civicrm.settings.php to the new format, which I believe is NOT needed.

Can anyone please explain what exactly the user should check (and fix) in civicrm.settings.php wrt to this issue?

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: Upgrade to 4.2 instructions: "Php settings overrides have changed" warning
October 04, 2012, 04:54:08 am
@cri,

Settings are generally stored in the database. That's where they're most easily tracked and maintained.

But if you have a development environment, it can be tedious when you take a copy of your production data, and then have to tailor the settings for development.

Much easier to place the override settings in the civicrm.settings.php file on the development server.

Check out CRM/Core/BAO/Setting.php. The global variable $civicrm_setting is tested in getOverride() which is in turn called from getItem() before looking at either the cache or the database.

Yes, it's a little bit vague in the documentation, but the mechanism is designed for developers, and is optional anyway. I'll try and clarify the documentation page.

Ken

cri

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Upgrade to 4.2 instructions: "Php settings overrides have changed" warning
October 04, 2012, 05:11:32 am
Ok, thanks for your explanation! (yes maybe adding it to the wiki page is a good idea)

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: Upgrade to 4.2 instructions: "Php settings overrides have changed" warning
October 04, 2012, 05:26:21 am
Documentation updated

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade to 4.2 instructions: "Php settings overrides have changed" warning

This forum was archived on 2017-11-26.