Jump to content

7.0.2 to 7.1.0 -> "Update Failed" -> site down


Recommended Posts

Hi,

 

When attempting to upgrade from 7.0.2 to 7.1.0 I get the following error:

 

Update Failed

 

An error occurred that prevented the update from completing successfully.

Unable to complete incremental updates: Unable to import the 7.1.0 Alpha1 database file. Unable to import /home/x/public_html/sales/resources/sql/upgrade710alpha1.sql: SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1

 

after which I can't access my WHMCS anymore until I do a restore of the database and the files.

Link to comment
Share on other sites

Got it solved after some messages with support:

 

* table "tbldomainpricing_premium" was missing (?)

* table "tblconfiguration" had 5 fields, had to remove "id"

 

1) Deleted "id" from that table

2) Executed these queries

CREATE TABLE IF NOT EXISTS `tbldomainpricing_premium` (

`id` int(10) unsigned NOT NULL AUTO_INCREMENT,

`to_amount` decimal(10,2) NOT NULL DEFAULT '0.00',

`markup` decimal(8,5) NOT NULL DEFAULT '0.00000',

`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',

`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',

PRIMARY KEY (`id`),

UNIQUE KEY `tbldomain_pricing_premium_to_amount_unique` (`to_amount`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

 

TRUNCATE tbldomainpricing_premium;

 

INSERT INTO `tbldomainpricing_premium` (`to_amount`, `markup`, `created_at`, `updated_at`) VALUES ('200', '20', now(), now()), ('500', '25', now(), now()), ('1000', '30', now(), now()), ('-1', '20', now(), now());

 

INSERT INTO `tblconfiguration` VALUES ('PremiumDomains', 0, NOW(), NOW());

 

INSERT INTO `tbladminperms` VALUES (1, 137);

 

And then the update worked.

 

Only thing.. after removing that field I got this message in phpmyadmin:

 

This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated