Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Tried to upgrade, but keep getting error. 
 
RH
Sr. Member
 
Avatar
Total Posts:  77
Joined:  2007-10-09
 

Hello.
I have tried on many occasions to upgrade my install to the new 1.1.2 but i keep getting this error:

PDOException Object
(
[message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘sales_flat_quote’ already exists
[string:private] =>
[code:protected] => 42S01
[file:protected] => /home/manicure/domains/manicured.co.uk/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line:protected] => 150
[trace:private] => Array
(
[0] => Array
(
[file] => /home/manicure/domains/manicured.co.uk/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 150
[function] => query
[class] => PDO
[type] => ->
[args] => Array
(
[0] => CREATE TABLE `sales_flat_quote` (
`entity_id` int(10) unsigned NOT NULL auto_increment,
`store_id` smallint(5) unsigned NOT NULL default ‘0’,
`created_at` datetime NOT NULL default ‘0000-00-00 00:00:00’,
`updated_at` datetime NOT NULL default ‘0000-00-00 00:00:00’,
`converted_at` datetime NOT NULL default ‘0000-00-00 00:00:00’,

`is_active` tinyint(1) unsigned default ‘1’,
`is_virtual` tinyint(1) unsigned default ‘0’,
`is_multi_shipping` tinyint(1) unsigned default ‘0’,

Any ideas, very confused.

warm regards

rob

 
Magento Community Magento Community
Magento Community
Magento Community
 
helpinghandhost
Member
 
Avatar
Total Posts:  72
Joined:  2007-11-12
 

Hi,

What method are you using to upgrade your Magento store? You should be following one of the methods listed here - http://magentocommerce.com/wiki/upgrading_magento

 Signature 

Helping Hand Host
- Offering the BEST Magento “Optimized” Hosting Plans

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

That’s due to couple of things.

1) Your tables are MyISAM and need to be converted to InnoDB
2) You may want to disable foreign key checks

What I do in this case is just edit the mysql-upgrade-x.php script and directly edit their mysql queries. Reason is because if you’ve performed an upgrade but you got an error, there are times your script went half way finished and you have some already in place while others you don’t. Such things happen when the upgrades creates a temporary table but then failed during the data import. Then you already have that table, so now it’s going to give you out an error that it exists, as you’ve pointed out here.

So you may need to start hacking your magento at this point, unless Varien can come up with more seamless upgrading options.

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
RH
Sr. Member
 
Avatar
Total Posts:  77
Joined:  2007-10-09
 

oh dear, this sounds very complicated. My back ups also have the same trouble,

even when i clear the cache the error comes up.

is it possible to copy my orders, products, customers, info to a clean install

cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

Well that does sound to me like you going to have to dig up the code one by one to clear up the mess.
Or do you have the backup of the database as well? Because if you backed them up, you should be able to revert to it without a problem.

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
RH
Sr. Member
 
Avatar
Total Posts:  77
Joined:  2007-10-09
 

Ok, does simple helix have a backup of my backups, i was told by your team that this error was casued becasue i had gone over my memory limit so deleted a couple of old back up leaving only 2 which i never knew also had this problem. Maybe Simple Helix had the ones i deleted then i can just revert back to them......

my domain is manicured.co.uk thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelix.com
Guru
 
Avatar
Total Posts:  417
Joined:  2007-08-31
Los Angeles, CA
 

RH,
I’ll have the support team give you a heads up on your account.

 Signature 

SimpleHELIX.com, LLC
A World-Class Magento Web Hosting company - Providing scalable, reliable, and secure enterprise hosting solutions
The creators of super-fast performance hosting. Find out more @ http://www.simpleHELIX.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
stevensurowiec
Jr. Member
 
Total Posts:  6
Joined:  2008-06-23
 

Has anyone come up with a solution to this? I keep getting this error when upgrading and have already burned several days worth of working time trying to get a simple upgrade to work and am unable to do so because of this error.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50154 users|538 users currently online|102302 forum posts