Jump to content

Beta2 Upgrade


Robsta

Recommended Posts

Probably not a mainstream bug, but upgrading from beta1 to 2 I got an error...

Error Message:

1062: Duplicate entry '1' for key 1



SQL:

INSERT INTO `CubeCart_history` (`id` ,`version` ,`time`) VALUES ('1' , '4.0.0beta2', '1182935741');

Link to comment
Share on other sites

Guest webicon

I had this - But fixed very simply -

Went into database found the table 'CubeCart_history' refrenced and manually updated with the values shown in error message - works just fine now...

Link to comment
Share on other sites

Guest rhyan

I also came across this bug earlier today and I think the correct fix is changing the id value from 1 to AUTO_INCREMENT=1. This is on line 134 of setup/upgrade.php

		$db->misc("INSERT INTO `".$glob['dbprefix']."CubeCart_history` (`id` ,`version` ,`time`) VALUES ('AUTO_INCREMENT=1' , '".$thisVersion."', '".time()."');");

Changing that fixed it for me. Good luck!

Link to comment
Share on other sites

Yes I used the same fix as you rhyan - found it on the bug tracker :)
As long as it's not a bug going between 4.0.0 to 4.0.1 when it happens.... the thoery is that noone will need to upgrade between betas or from betas, as betas are not a mainstream release.
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.

×
×
  • Create New...