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) »
  • Problem with 4.2.0 installation instructions
Pages: [1]

Author Topic: Problem with 4.2.0 installation instructions  (Read 1368 times)

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
Problem with 4.2.0 installation instructions
September 01, 2012, 06:01:00 am
Thanks everyone for a great new release. I had a hiccup on the upgrade, though.

When upgrading CiviCRM to 4.2.0, and starting with the civicrm.settings.php being not writable, I'm advised by the upgrade script to either make it writable or to add 2 lines to it myself. (The upgrade documentation doesn't mention this change.)

When I then make that file writable, the upgrade starts but then it hangs. The civicrm.settings.php file is not updated. I repeated this with a fresh database in case the first failure had corrupted the data, but had the same result.

When I add the lines myself before starting the upgrade, the upgrade succeeds.

Either the upgrade script is giving the wrong advice, or the recommended changes to the settings are being used before they're being set.

I suggest the script and the upgrade documentation are fixed.

Ken

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: Problem with 4.2.0 installation instructions
September 02, 2012, 01:31:25 am
Here are the errors that were logged. The first three were from the first run (civicrm.settings.php not writable when invoking /civicrm/upgrade, then made writable before pressing 'Upgrade Now', and clicking on 'skip' as errors presented). The fourth was from the second run (fresh database, civicrm.settings.php writable before invoking /civicrm/upgrade).

Quote
Sep 01 19:49:56  [info] $CRM_Queue_Page_AJAX_runNext_result = Array
(
    [is_error] => 1
    [message] => DB Error: unknown error
    [last_task_title] => Upgrade DB to 4.2.alpha1: SQL
    [numberOfItems] => 35
    [is_continue] => 0
)

Sep 01 19:50:16  [info] $CRM_Queue_Page_AJAX_runNext_result = Array
(
    [is_error] => 1
    [message] => DB Error: no such field
    [last_task_title] => Upgrade DB to 4.2.alpha1: Price Sets
    [numberOfItems] => 34
    [is_continue] => 0
)

Sep 01 19:52:06  [info] $CRM_Queue_Page_AJAX_runNext_result = Array
(
    [is_error] => 1
    [message] => A fatal error was triggered
    [last_task_title] => Upgrade DB to 4.2.alpha1: Contributions (111 => 5110)
    [numberOfItems] => 33
    [is_continue] => 0
)

Sep 01 20:08:44  [info] $CRM_Queue_Page_AJAX_runNext_result = Array
(
    [is_error] => 1
    [message] => DB Error: already exists
    [last_task_title] => Upgrade DB to 4.2.alpha1: Price Sets
    [numberOfItems] => 34
    [is_continue] => 0
)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Problem with 4.2.0 installation instructions
September 02, 2012, 08:18:08 am
I ran this upgrade on two different sites today. I first made sites/default writeable and then I made civicrm.settings.php writeable. Both upgrades went smoothly and civicrm.settings.php was indeed updated.

Regarding the need for write-ability, can you go ahead and update the wiki page? :)
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.

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: Problem with 4.2.0 installation instructions
September 03, 2012, 09:37:46 pm
Hershel, I've updated the upgrade instructions for Drupal 7. Before I change the others, can you have a look? It's an important procedure etc etc.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Problem with 4.2.0 installation instructions
September 06, 2012, 06:22:08 am
Looks good. I added one more line:

Quote
The simplest thing therefore, is to make sure it's writeable before you upgrade.

as that worked fine for me.

Thanks, Ken.
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.

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: Problem with 4.2.0 installation instructions
September 07, 2012, 01:48:46 am
It doesn't appear this change is required in Joomla and I'm not sure whether it's required for Wordpress.

Step 6 for Joomla includes a comparison of the new and the old settings files. Is that how the Wordpress install works?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Problem with 4.2.0 installation instructions

This forum was archived on 2017-11-26.