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
Next revision
Previous revision
how_to_resume_a_failed_upgrade [2019/11/21 23:28]
how_to_resume_a_failed_upgrade [2020/07/28 17: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. 
 +1. Make note of which version of the upgrade patches 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 e.g. 2.0. All prior patches should have been successfully processed until this one, and should not be applied again. If it was the .php patch that failed, you can safely delete the .sql patch, as the SQL patch is always processed before the php patch. 
 +3. Edit the failing patch and remove all commands before the failing command that halted the process, as they have already been applied. 
 +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.
-Moved to [[how_to_upgrade|How To Upgrade LiteCart]] 
how_to_resume_a_failed_upgrade.1574375297.txt.gz · Last modified: 2019/11/21 23:28 by admin