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) »
  • Upgrading from 4.2.7 to 4.2.8 upgrade script fails
Pages: [1]

Author Topic: Upgrading from 4.2.7 to 4.2.8 upgrade script fails  (Read 864 times)

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Upgrading from 4.2.7 to 4.2.8 upgrade script fails
March 06, 2013, 01:03:13 pm
On Drupal 7.2  I just tried to run the civicrm upgrade script after the other steps were completed according to the wiki and am getting this message:

Sorry but we are not able to provide this at the moment.
Your database has already been upgraded to CiviCRM 4.2.7
Return to home page.

So, it at least appears to be failing. The site still seems to work for civicrm on a quick check. How do I make sure that the DB update was actually completed or is it possible there was no DB update necessary between v 4.2.7 and 4.2.8 and I can ignore the message even though it says 4.2.7?

UPDATE: I noticed the footer still says version 4.2.7 also, so it appears my upgrade is failing for an unknown reason.

UPDATE II: When I run civicrm/admin/setting/uf?reset=1 ... I should be seeing array information but there is none displayed.



« Last Edit: March 06, 2013, 03:11:19 pm by Michael »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading from 4.2.7 to 4.2.8 upgrade script fails
March 07, 2013, 03:01:40 am
Did you remove all template cache files?

As a test, remove all CiviCRM code from your server and then run the update URL. It should give WSOD or at least Page Not Found.

Then you know you have the right spot for the code. Then try putting there 4.2.8 code.
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Upgrading from 4.2.7 to 4.2.8 upgrade script fails
March 07, 2013, 07:51:31 am
Thank you. Following your suggestions I first deleted all the files and folders in the templates_c directory and ran the upgrade script. The result was a fatal error:

"Sorry but we are not able to provide this at the moment.
Your database has already been upgraded to CiviCRM 4.2.7"

Attempting to run the upgrade script creates more files and folders in the templates_c folder so I will remember to keep deleting them until this upgrade process completes.

I re-named the civicrm file in sites/all/modules to something other than civicrm and tried to go to the homepage and got the WSOD so it appears the files are in the right location. When I changed the filename back to civicrm the site came back up as expected. Also, I tried running the upgrade script in both instances and got the same results. I double-checked the version in the tarball I downloaded to make sure the version is correct and it is, 4.2.8

Not sure what to try next. I looked in the various settings files and made sure they have the additional code included where applicable and they do. Everything appears to be correct except the upgrade script won't upgrade the DB.

Any ideas? I'll try anything ...

UPDATE: I looked at this file: civicrm-version.php  ... this was included when I downloaded 4.2.8 and uploaded the files. It says:

<?php
function civicrmVersion( ) {
  return array( 'version'  => '4.2.7',
                'cms'      => 'Drupal',
                'revision' => '44558' );
}

So, is it supposed to say that or should I try editing it to make it say 4.2.8 and then try the upgrade script again?
« Last Edit: March 07, 2013, 08:03:23 am by Michael »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading from 4.2.7 to 4.2.8 upgrade script fails
March 07, 2013, 08:12:32 am
I would suggest you get a fresh tarball from sourceforge.

Then delete your code and install the fresh code.
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Upgrading from 4.2.7 to 4.2.8 upgrade script fails
March 07, 2013, 08:40:43 am
That worked! It's basically what I did before but this time deleting the cached template files first.

Many thanks, Hershel! Your help is very much appreciated.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading from 4.2.7 to 4.2.8 upgrade script fails
March 07, 2013, 08:43:38 am
My pleasure. Now upgrade your Forum profile. :)

You're not using Drupal 7.2 either. Can't be.  ;D
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading from 4.2.7 to 4.2.8 upgrade script fails

This forum was archived on 2017-11-26.