Jump to content

Changed to PHP8.0. and can no longer access site


Go to solution Solved by Randy Calvert,

Recommended Posts

Posted

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.)

 

Posted
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.....

Posted (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 by Randy Calvert
Posted
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.....

 

🙂

Posted

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.

 

Posted
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....

Posted (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....

Could contain: Chart, Plot, Measurements

 

Just Refreshed, Back to 503

Edited by Janet Hansen
Posted
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!

 

Posted

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)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...