Upgrading - Reference Guide
Key Points Related To Upgrading
- Checking your available PHP versions
- How To Upgrade - Detailed Guide YES, READ THIS!!!!
- Why Upgrade? (Protecting your site from bad actors)
- Date Standardization
- Release Specific Upgrade Considerations
- Template Changes
- Configuration Parameter Name Changes
Upgrading Approaches
- Standard Upgrade - preserving your customizations
- Database-Only Upgrade - quickie upgrade if you want to start over; does not preserve customizations
Verifying your Upgrade
- Creating a Test Store on Your Server - contributed by a community member. Requires cPanel. This is a combination of the articles Testing on your Server and Multiple PHP Versions.
After Upgrading
- Keep Your JavaScript Scripts Updated
- Should I Change My Database Character Set to UTF8?
- Check out the Regular Periodic Maintenance thread for things you should be doing regularly.
- Be sure you are subscribed to the Known Bugs thread for your release. Update your store as fixes are announced.
Troubleshooting
QUESTION: “But it seems like a long process …”
ANSWER: It is! An “upgrade” is essentially a rebuilding of your site.
The suggested upgrade process is the recommended way to do it so that you rebuild your site in a temporary location, letting you resolve all potential problems before you ever touch your actual live site.
This gives you time to sort out whatever needs sorting “just in case”, and allows you to keep taking sales while you’re preparing the upgrade.
It also helps take some of the pressure off and makes it less urgent to do it all in one fell swoop.
The process of comparing your site against the original code for the old version is, in large part, to simply help you quickly identify what customizations you need to make to put those same capabilities into your new site. It simply speeds the process and creates a sort of checklist of things for you to do to re-build it all onto your new site.
Then, after you’ve got it all built in the temporary location, you put your live store down for maintenance, quickly redo the upgrade there following your checklist and notes, and then bring it online … meaning your actual live store’s downtime could be as short as 5-10 minutes depending on complexities etc.
So, follow the guide, and while there may be some learning involved and remembering of things you did awhile back, it’s all time well spent.
QUESTION: “I have a very old version. Do I upgrade in stages, or all-at-once?”
ANSWER: You can upgrade to the latest version directly.
For the “files” portion of the upgrade, simply use the latest version.
And when you do the database-upgrade step via zc_install
it will show you all the database-version-levels which need upgrading, and will pre-check the checkboxes for you and will take care of upgrading through all those steps automatically. Usually you can just leave those boxes checked and put in the admin password and proceed with the upgrade, which normally will take just a few seconds.
QUESTION: “I can’t figure this out! What do I do?”
ANSWER: Upgrading is a complex and time consuming process that requires skills that many (if not most) shop owners just don’t have.
The good news is that Zen Cart has a Commercial Help Wanted forum, where you
can hire a contractor to do this work for you.