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 from Drupal 4.0.7 to Wordpress 4.1.0
Pages: [1]

Author Topic: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0  (Read 1730 times)

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 17, 2012, 04:35:32 pm
I'm having some issues with this upgrade.

Here's the situation, 2 weeks ago I removed drupal from my web server, but i kept the civi database because I wanted to start using the wordpress version when it was available.

Now When I run the upgrade script after installing civi plugin for wordpress, I get an error during the DB upgrade process:

Quote
Sorry. A non-recoverable error has occurred.
DB Error: no such field
Error Details
Database Error Code: Unknown column 'contribution_page_id' in 'NEW', 1054
Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

        [ (edit)code ] => -19
       
[message] => DB Error: no such field
    [mode] => 16
    [debug_info] => UPDATE `civicrm_pcp` `pcp`
  SET `pcp_block_id` = (SELECT `id` FROM `civicrm_pcp_block` `pb` WHERE `pb`.`entity_id` = `pcp`.`page_id`) [nativecode=1054 ** Unknown column 'contribution_page_id' in 'NEW']
    [type] => DB_Error
    [user_info] => UPDATE `civicrm_pcp` `pcp`
  SET `pcp_block_id` = (SELECT `id` FROM `civicrm_pcp_block` `pb` WHERE `pb`.`entity_id` = `pcp`.`page_id`) [nativecode=1054 ** Unknown column 'contribution_page_id' in 'NEW']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE `civicrm_pcp` `pcp`
  SET `pcp_block_id` = (SELECT `id` FROM `civicrm_pcp_block` `pb` WHERE `pb`.`entity_id` = `pcp`.`page_id`) [nativecode=1054 ** Unknown column 'contribution_page_id' in 'NEW']"]
)

I've tried removing the triggers per someone reccomendation in the IRC channel. and ran the upgrade. Same error.

So, Should I try to manually upgrade the schema? or is there a better way to go about this. I have a backup of the 4.0.7 database.

Please Help.

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Re: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 17, 2012, 08:55:45 pm
OK, So I just tried another way told to me in IRC.

I put drupal back on from my backup. and ran the upgrade on that.

No go, I am getting the same error as above.

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Re: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 18, 2012, 07:55:47 am
This is all within Drupal:

I tried upgrading from 4.0.7 to 4.0.8. the DB upgrade was successful! :)

So then I moved on to upgrading from 4.0.8 to 4.1.0. I got the same error as above with that upgrade. What is going on?

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: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 18, 2012, 02:07:45 pm

no idea whats happening on your site :(

i do suspect u have some triggers / views still on your DB, since the error is mentioning a column that is not part of the SQL statement

can u run that statement manually and see what u get and try debugging from there

thanx

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

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Re: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 18, 2012, 06:47:47 pm
what statement am I supposed to be running manually? the trigger removal one? or a schema upgrade one?

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Re: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 20, 2012, 08:46:16 pm
Can I dump the 4.0.8 database into a .sql file, then do a clean install of 4.1 in wordpress and import the old database into the new database with the new schema?


Also, should I empty all the tables before import?

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: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 21, 2012, 07:19:46 am

hmm, i dont think it will work since the 4.0.8 and 4.1.0 schemas are different and some data conversion needs to take place

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

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Re: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 25, 2012, 05:42:09 am
upgrading the database seems to be giving lots of people problems.

No one has solutions to this problem, I think I'm going to submit this as a bug.

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: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 25, 2012, 09:49:17 am

in general we like to use the forums to get more detail and help us figure out the potential bug

Submitting a bug without a better idea on whats happening and a potential solution does not help you or us

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

bl-admin

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Wordpress 3.4.2
  • MySQL version: MariaDB 5.5.27
  • PHP version: 5.4.4-4
Re: Upgrade from Drupal 4.0.7 to Wordpress 4.1.0
February 27, 2012, 07:59:25 pm
Ah, I'm sorry. It was taking too long to get to the bottom of it. I went ahead and trashed the old database and started with a clean slate. I only had donations that I had paid for in bills for the organization anyway.

I do still think it's a problem that should be fixed for others.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade from Drupal 4.0.7 to Wordpress 4.1.0

This forum was archived on 2017-11-26.