Jump to content

Site failing with PHP 8.0


Gauravk

Recommended Posts

We have recently upgraded the server with PHP 8.0 and since then the site is consistently failing.

Initially, there were 6 outdated plugins that we have removed and updated so that now compatibility scanner shows no issues.

However, our site when PHP 8.0 is enabled still fails to load.

We reported this issue to cPanel and they revert to the below diagnose that our site code still using the "magic quote runtime" deprecated function in index.php.

Please help. Thanks in advance.

 

Could contain: Text, Document, Page, Letter

Could contain: Page, Text, Document, File

 

Link to comment
Share on other sites

One of two things is happening:

Either your site has a 3rd party resource that is not compatible with PHP8.  Try disabling all 3rd party resources and then trying PHP8

Your PHP8 install might not have the required modules.  Switch to PHP8 and then download and run the compatibility checker to see if you’re missing a required module.

Link to comment
Share on other sites

2 minutes ago, Randy Calvert said:

Either your site has a 3rd party resource that is not compatible with PHP8.  Try disabling all 3rd party resources and then trying PHP8

In that case compatibility scanner should reflect that as it did for 6 older and outdated plugin, 4 we removed and 2 we have updated. Check below.

3 minutes ago, Randy Calvert said:

Your PHP8 install might not have the required modules.  Switch to PHP8 and then download and run the compatibility checker to see if you’re missing a required module.

If you read cPanel support reply PHP 8.0 has been installed correctly.

 

Present

Could contain: Text, Page

 

Before

Could contain: Page, Text, Number, Symbol, Menu

 

Before Updating

Could contain: Text, Page

Link to comment
Share on other sites

Remember… PHP8 can be installed correctly but missing a module that IPB needs. Use the checker script to confirm. 

cPanel does not know what modules are required by IPB. So it would be in your interest to confirm it yourself. 😉

Also the 3rd party resource checker is new. It might miss something. It does not take a lot of effort to confirm by turning off all 3rd party resources. If you spend weeks pulling your hair on this for something simple, you will seriously hate yourself later. It’s an easy check that does not take much effort. It also has been the cause of problems for a LOT of people. So up to you if you take my advice. 

Link to comment
Share on other sites

Having read through the response from cpanel there, it seems issues are being caused by items outside of our control. None of those are Invision Community 4 files/folders. initdata.php is from version 3.4 and can be removed. the /content/ folder may well also be from 3.4 unless you know differently. Back up that folder and then delete it

Link to comment
Share on other sites

Its not something that would happen automatically. There has been instructions on how you can if you wish to remove them in the past, but its never really been nessesary. To be honest, Im not sure why that would actually be causing your site to crash, but if that is what your hosting company is coming back with, something is clearly connecting to them for some reason

Link to comment
Share on other sites

  • Recently Browsing   0 members

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