Derbai Posted September 19 Posted September 19 Hello, I would like to update to PHP 8. Now I have installed the 7.4 version. I need to make something before update to php 8? Thanks
0 the.rampage.rado Posted September 19 Posted September 19 1. Have your shop working properly on 7.4 and make a backup (both DB and filesystem). 2. Go to Core Updater and select Target PHP version: 8.x version you want to switch to. Save. 3. Update your store at this state. It will probably break it when you refresh, don't worry. 4. Switch php versions on your server (use the version you specified in Core updater, if you don't your shop will not work as some dependencies have custom versions). 5. Open your backoffice and front office. BO should work right away. FO might have some issues (3rd party theme and modules). 6. Clear cache. 7. Fix any issues present in Collect logs module. 8. Once your shop is working on php 8.x you can once again switch Target PHP version to 'Server PHP version'. In order to revert to 7.4 simply do the opposite: 1. In Core updater - switch the target version to 7.4. Shop is again broken until you switch php versions on the server. 2. Switch php to 7.4. 3. Open BO and FO and continue (you should not see any issues if your shop worked OK before that). 4. Clear cache. 5. Again revert back to Target PHP version to 'Server PHP version' if you don't plan to play again soon and you don't want to forget about this setting. 1
0 datakick Posted September 19 Posted September 19 Yes, you should install collectlogs module, and let it collect errors for a few days. You have to fix all deprecation warnings - core code should be ok, but you will get some errors from modules and theme. After all warnings are fixed, you can safely update to higher version of PHP. Always update to next PHP level only - from 7.4 to 8.0. When you later want to update to 8.1, you will have to repeat this process again. 1
0 theMerchantDev Posted September 19 Posted September 19 Maybe, first of all, check if your theme and main 3rd party modules support PHP 8. And then ask to developers for PHP 8 versions, or do it by yourself. So, first of first of all, have a clone of your shop to work with it. 1
0 Obi Posted September 29 Posted September 29 On 9/19/2024 at 10:11 AM, theMerchantDev said: Maybe, first of all, check if your theme and main 3rd party modules support PHP 8. And then ask to developers for PHP 8 versions, or do it by yourself. So, first of first of all, have a clone of your shop to work with it. ^^^ What He Said ^^^
Question
Derbai
Hello, I would like to update to PHP 8. Now I have installed the 7.4 version. I need to make something before update to php 8?
Thanks
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now