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 Drupal (7.19) civiCRM from 4.1.6 to 4.2.7 - by increments?
Pages: [1]

Author Topic: Upgrade Drupal (7.19) civiCRM from 4.1.6 to 4.2.7 - by increments?  (Read 774 times)

johngs

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.3.2
Upgrade Drupal (7.19) civiCRM from 4.1.6 to 4.2.7 - by increments?
January 18, 2013, 09:17:32 am
Hi,
I am trying to upgrade 4.1.6 to 4.2.7, and have encountered "DB error: already exists" when executing "CREATE TABLE civicrm_sms_provider..." during the step labeled "[Executed: Upgrade DB to 4.2.alpha1]". I have attached a screen shot if it is useful.
I am about to try the upgrade with all themes disabled/stripped back to Garland, as per the response to garthb by lobo :-)
Is it helpful to go by smaller increments? i.e. 4.1.6 - 4.2.0, then 4.2.1, 4.2.2, etc.?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Upgrade Drupal (7.19) civiCRM from 4.1.6 to 4.2.7 - by increments?
January 18, 2013, 09:45:52 am
Increments won't help at this point.

If that table ( civicrm_sms_provider) already exists your 4.1 db, it means your schema is incorrect and must be repaired.  Why?  CiviCRM doesn't have that table in 4.1 but does in 4.2.  Somehow it got created...a previous failed upgrade? This meants that it will try to create it when you run the upgrade script.  If the table already exists the upgrade will abort.

1. Do you have recent a backup of your 4.1 database that does NOT have that table?  If yes, drop your CiviCRM database completely and reload it from backup.  Notice I said DROP it first, because you must get rid of that table.

2. If you do not have a fresh backup of 4.1 then you need to follow the instructions here:
http://wiki.civicrm.org/confluence/display/CRMDOC42/Ensuring+Schema+Integrity+on+Upgrades
Try CiviTeacher: the online video tutorial CiviCRM learning library.

johngs

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.3.2
Re: Upgrade Drupal (7.19) civiCRM from 4.1.6 to 4.2.7 - by increments?
January 18, 2013, 11:50:32 am
Hi Stoob,
Although the civicrm_domain table shows the version as 4.1.6, the civicrm_sms_provider table is indeed there in the db schema.

So, thanks for your reply, as it is confirmation that there is leftover crud, and it is indeed from a previous failed upgrade. I've seen the link you provided, and can deal with the instructions it contains, and appreciate the confirmation that it is the valid info to follow!

One 'curious' question. Where do you find the schema is for a given upgrade, or perhaps a diff list between upgrades?

Just fyi: There were failed attempts to upgrade three months ago, by my hosting software dev team, who decided that there were permissions issues on the server that have now apparently been fixed. The backups from then exist, but are very stale, as we have done much work since then to prepare civi for online registration of the yearly main event in February. Finally, I'm trying to go to 4.2.7 because it solves flow problems with payment options for the user, specifically between online and offline payment. As far as I can tell from testing and forums, 4.1.6 ignores the 'pay offline' checkbox and marches people to paypal anyway, and this is resolved in 4.2.x. This is our last "blocker" from going live and really beginning to use civi in a day-to-day mode, which I want to happen asap, since seeing is believing... ;-)

Again, thanks!



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade Drupal (7.19) civiCRM from 4.1.6 to 4.2.7 - by increments?

This forum was archived on 2017-11-26.