Tyson Hansen Posted February 27, 2023 Posted February 27, 2023 I recently changed to PHP8.0 and am now receiving a '503 Service Unavailable' error. Any suggestions? Site we're having problems with - https://northernstaterp.net
Randy Calvert Posted February 27, 2023 Posted February 27, 2023 It means you are either running an older version of IPB or you are running a 3rd party resource that is not compatible with PHP8. What version of IPB are you on? If it’s one of the 4.7 releases, try running recovery mode. It will disable all third party modules so you can get back online. (Once you run it, you’ll need to remove the code to turn it on.)
Tyson Hansen Posted February 27, 2023 Author Posted February 27, 2023 5 minutes ago, Randy Calvert said: It means you are either running an older version of IPB or you are running a 3rd party resource that is not compatible with PHP8. What version of IPB are you on? If it’s one of the 4.7 releases, try running recovery mode. It will disable all third party modules so you can get back online. (Once you run it, you’ll need to remove the code to turn it on.) Hey, I don't have a 'constants' file of any sort.....
Randy Calvert Posted February 27, 2023 Posted February 27, 2023 (edited) Create one with the only code in it being what is shown: <?php define('RECOVERY_MODE',True); It should exactly be named and uploaded as: constants.php Once it’s uploaded, open a new browser and login to ACP. You’ll see a message about things being disabled. Once done, you’ll hopefully be in ACP with a message saying turn recovery mode off. Simply delete that file to do that. Then you’ll just need to figure out which third party resource is breaking your site by turning them on one by one till the site breaks again. Rinse and repeat. 🙂 Edited February 27, 2023 by Randy Calvert SJ77 1
Tyson Hansen Posted February 27, 2023 Author Posted February 27, 2023 2 minutes ago, Randy Calvert said: Create one with the only code in it being what is shown: <?php define('RECOVERY_MODE',True); Once it’s uploaded, open a new browser and login to ACP. You’ll see a message about things being disabled. Once done, you’ll hopefully be in ACP with a message saying turn recovery mode off. Simply delete that file to do that. Then you’ll just need to figure out which third party resource is breaking your site by turning them on one by one till the site breaks again. Rinse and repeat. 🙂 Just made the file and added that into it, the site is still giving a 503 error. Nothing changed..... 🙂
Tyson Hansen Posted February 27, 2023 Author Posted February 27, 2023 Just now, Randy Calvert said: What version of IPB are you running? Im sorry, Im a noob at this sorta stuff lol.... How would i check without access to ACP?
Randy Calvert Posted February 27, 2023 Posted February 27, 2023 You would have needed to know already without looking through source code. If you have not updated in a while, it’s very possible you’re on an older version that does not support PHP8. Let’s try a manual upgrade… - Delete that constants.php file if you have not already. - Login to the client area on this site and download a copy of the latest version of the software (4.7.7). - Upload the files to your website. - Visit domain.com/admin/upgrade That should upgrade you to the latest version. Also have you checked if you version of PHP8 has all of the required modules? If anything is not green, you will need to address it.
Tyson Hansen Posted February 27, 2023 Author Posted February 27, 2023 1 minute ago, Randy Calvert said: You would have needed to know already without looking through source code. If you have not updated in a while, it’s very possible you’re on an older version that does not support PHP8. Let’s try a manual upgrade… - Delete that constants.php file if you have not already. - Login to the client area on this site and download a copy of the latest version of the software (4.7.7). - Upload the files to your website. - Visit domain.com/admin/upgrade That should upgrade you to the latest version. Just did that then, Still coming up as service unavailable. I'm honestly unsure whats wrong....
Randy Calvert Posted February 27, 2023 Posted February 27, 2023 See my edited post about the compatibility checker. I added a note that got merged while you were replying. Does that new file when you run it show everything as green?
Tyson Hansen Posted February 27, 2023 Author Posted February 27, 2023 (edited) 7 minutes ago, Randy Calvert said: See my edited post about the compatibility checker. I added a note that got merged while you were replying. Just added that file, The checker isn't even working... Now this is showing.... Just Refreshed, Back to 503 Edited February 27, 2023 by Janet Hansen
Solution Randy Calvert Posted February 27, 2023 Solution Posted February 27, 2023 That means your server’s PHP8 is not working correctly. You’ll need to work with your hosting provider. PHP is most likely not compiled correctly. If that script cannot run, it is absolutely a server problem. SJ77 1
Tyson Hansen Posted February 27, 2023 Author Posted February 27, 2023 1 minute ago, Randy Calvert said: That means your server’s PHP8 is not working correctly. You’ll need to work with your hosting provider. PHP is most likely not compiled correctly. If that script cannot run, it is absolutely a server problem. All good, Ill speak with the hosting company. Thanks for your help Randy! Randy Calvert 1
Marc Posted February 27, 2023 Posted February 27, 2023 Yes, its not interpreting PHP there. Usually tends to be an htaccess that has gone missing that some hosting panels create to say what to interprit PHP with (what versions)
Recommended Posts