Error in file:
/usr/local/sites/client/magento_site/app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-1.4.0.0.7-1.4.0.0.8.php" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'customer_form_attribute' already exists
I tried upgrading this using this tutorial from turnkeye to go from 1.4.1 -> 1.4.2 and then to 1.6 but after all the mage upgrading was complete, when I hit the website to upgrade the database I get errors about database tables that already exist and it appears to be running a database upgrade script for a version of magento before 1.4.2. I know this error is extremely common and I have seen many blogs posts about it and read all that I have found -- I see no resolution besides starting a fresh install.
I've heard people say this can happen if a previous upgrade didn't complete successfully but I don't think that is the case here -- I think it was a fresh install at 1.4.1 (at least I don't believe I ever upgraded it). Anyone know why this is happening or how to fix it?
Note 1: I also tried the upgrade by overwriting the 1.4.1 files via SSH with successive version of magento -- always the same database errors though. If I remove the mysql-upgrade script that is failing, then another one fails in its place with a simliar 'table already exists' error.
Note 2: I also made sure I cleared /var/cache and /var/session and even tried reindexing. No success.
Looks like it is just complaining about a table already existing. Either install a fresh version of you database from before you tried to upgrade then clear cache and sessions and try again
Or
Just open the file referenced and temporarly comment out the part that is installing the table again. That should allow you to by pass the error.
Then you can download the magento Database Repair Tool to ensure that your tables are correct.
Related
I am trying to upgrade Magento version 1.4.1 to 1.9 with the stranded process.
1) Clean all your log tables. This will increase the speed of your upgrade
2) Get current database dump of your website.
3) Setup a local environment and restore you CE-1.4 database to a newly created database
4) Create you local.xml on your new CE 1.9 environment.
5) Start the upgrade process by either opening your site in your browser
but I am getting foreign key constraint error in customer and catalog tables during the database upgrade.
Can anyone help me to fix this issue? or any other best way to upgrade the magento version?
I believe the problem is that making such a large leap in versions is not possible in one upgrade.
The answer here has info relevant to upgrading from 1.4.1.1: How to upgrade magento 1.4 1.1 to 1.7.0.2
Specifically:
Database structure has major changes from 1.4.1.1 to 1.4.2 so you need
to upgrade first to 1.4.2 then you can upgrade to 1.7.0.2 directly.
I think your best option is to upgrade in smaller steps until you get where you want to be. The last such upgrade I did included the following steps:
1.3.2.4
1.4.2.0
1.7.2.0
1.8.1.0
1.8 was the goal, but I had to get to 1.4.2.0 and then 1.7.2.0 before I could proceed.
My git log also shows that some additional code patches were required after upgrading to 1.4.2.0. You could probably find more detailed answers if you search for info on upgrading to that specific version.
Great solution provided by BonnevillSlim. Thanks!
I have followed the these steps 1.4.1 > 1.4.2 > 1.6.2 > 1.9.2 .
During the up-gradation I have got an error QLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0-98' for key 'UNQ_BY_CUSTOMER' .
To resolve this error I have follow this post link
I've tried every method I can think of to update from 3.1.5 to 3.2.3 and each time it pretty much kills my site and leaves me with the error:
Fatal error: Call to undefined method JLoader::registerAlias() in /homepages/.../libraries/cms.php on line 61
At which point I just clobber the rest of the site and reinstall my backup (oh man you GOTTA LOVE Akeeba).
I've upgraded Joomla successfully and unsuccessfully about 100 times over the past few years on various sites and this is the first time I'm stumped as how to move forward.
One interesting piece of data is in the Admin Control Panel of the 3.1.5 is that the Joomla version says "Unknown" even though the System Information lists it as 3.1.5.
So, anyway, what is the ABSOLUTE, BLESSED method for moving from 3.1.5 to 3.2.3? If I should simply be able to install the 3.2.3 upgrade zip file then I guess I'm toast. In that case, what would happen if I left the database as is and cleared out all the files and then installed the 3.2.3 full stable package? Would that work?
Do you have Akeeba backup installed? You need to make sure it is updated first before updating joomla.
So if yo have a back up, restore that, update Akeeba, then update Joomla again.
http://www.rockettheme.com/forum/general-discussion/215394-pressing-the-joomla-update-button-killed-my-site
The solution was pretty easy, though unexpected. See here.
I am upgrading magento version 1.5 store to magento version 1.7. Current store has more than 1000 products, more than 100 categories, more than 20 attribute sets, more than 500 customers,more than 500 orders and Database size is more than 600MB.
Above details are mentioned in order to have the idea of store size. Furthermore, I am trying it on local machine with wamp server installed.
Here are the steps involved to upgrade:
Export Current Database (Imported it in gzipped format with option "Disable foreign key checks" checked). As I was unable to export it in normal sql formate due to large size of database.
Created new database and imported the Database exported.
Downloaded fresh 1.7 stable version from magentocommerce.com
Tried to install this fresh magento 1.7 in newly created Database, in which exported database was recently imported.
Next steps were to install theme, copy extensions and copy media folders.
But when I tried to install magento 1.7, it always give me this error :
"This webpage has a redirect loop
The webpage at http://localhost/magento17/index.php/install/ has resulted in too many redirects. "
Here is the link to which I was following:
Link I followed
Note that my main focus is upgrading from 1.5 to 1.7, so much focus must be on that rather then resolving this issue if it is not the right way to do.
And If there is any better and proven way to upgrade to 1.7 from 1.5, kindly share it.
If you want to upgrade you dont need to install and move DB and theme.
Refer this link.
http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/upgrading_magento
Note: If you followed best practices in Magento and didn't modify core code then upgrade should run smoothly.
Expected issues are that your Local and Community folder modules might need some fixes.
Using the seach form in the shop outputs the "Whoops, our bad..." page.
I've seen similar questions but rebuilding the index is not solving the problem.
The search form sends to http://...//catalogsearch/result/?q=... and fails. But if I use the advanced search url http://...//catalogsearch/advanced/result/?name=... it works fine.
Any idea of what can be causing this behaviuor. The shop has recently been upgraded from magento 1.5.X to 1.6.0 and then to 1.6.1
thanks
Something similar happened to me and the problem was that the upgrade wasn't completed.
Make sure you've no dependencies problems or conflicts when upgrading.
If you get errors with dependencies, try uninstalling non core modules and then try to install magento latest again. Make sure the errors disappear.
Once the upgrade is correct you can re-install uninstalled modules, if they work in the latest magento version.
Just in case. Reindex from terminal. I had the same problem. Reindexing from the backoffice wouldn't work, but after reindexing from terminal, everything went back to normal.
php /path/to/magento/shell/indexer.php reindexall
Am looking to upgrade Mangeto from version 1.1.8 to version 1.5.
This is a quite a leap I am taking I know, but and I have tried the following already (as some one else had suggested on another site):
dump v1.1.8 database, restore it in a new database.
install magento 1.5 pointing on the restored v1.1.8 database
let the upgrader run
add the old theme files
test that it all works.
When doing that, the upgrader kept saying some tables already existed.
Can anyone help me out?
Thanks
It's fine now, basically make sure you're using the same server environment.