User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_resume_a_failed_upgrade [2019/11/21 23:25]
admin [How To Recover a Broken Platform]
how_to_resume_a_failed_upgrade [2019/11/21 23:28] (current)
Line 1: Line 1:
 ====== How To Resume a Failed Upgrade ====== ====== How To Resume a Failed Upgrade ======
-Sometimes it happens that an upgrade fails and you forgot ​to make a backup. It's not the worst thing that could ever happen. And it can easily be fixed. +Moved to [[how_to_upgrade|How To Upgrade LiteCart]]
- +
-1. Make note of the version of the upgrade patch that halted. In this example, we will assume 2.0.sql was the patch that halted with an error during upgrade. +
- +
-2. Start by deleting all patches before the failing patch prior to (in this case) 2.0, because all prior patches should have been successfully processed. Since it was the .sql patch that failed, you can safely delete the,​ as that patch was completed before attempted to run 2.0.sql. +
- +
-3. Edit the failing patch 2.0.sql and remove all commands before the failing command that halted the process, as they are already committed. +
- +
-4. Solve the cause for why the command halted. Usually it's due to conflicting data in the database. +
- +
-5. Resume your upgrade by pressing F5. Or go to upgrade.php again if you accidentally closed the window. +
- +
-====== ​How To Recover a Broken Platform ====== +
- +
-1. Replace your installed platform with a fresh new set of files. +
- +
-2. Copy the following files and directories of user data to the new set: +
- +
-  * data/ +
-  * images/ +
-  * includes/​ +
-  * robots.txt +
- +
-3. Compare your database structure with a fresh installation. You can use phpMyAdmin to export the database structure. Compare the files with a file comparison software e.g. WinMerge 2011 or bbEdit. Make sure your database structure conforms to the fresh new structure by correcting any inconsistencies.  +
- +
-If you still are having issues, investigate the recent upgrade patches to see if any data in the database tables should be adjusted.+
how_to_resume_a_failed_upgrade.txt · Last modified: 2019/11/21 23:28 by admin