Site logo

Archived topic

php8 error

4 replies · Started by Bernhard on April 18, 2021

Viewing posts 1–5 of 5

Hello,
I tried to activate php 8.0 but this crashed my site (critical error). Going back to 7.4 the site is ok. How can I find out what happened?

Update: The hosting provider says:

We were able to see the following error on the website https://www.tourist-in-rom.com/ when PHP 8.0 is used:

(Please see private information)

You may need to use mysqli_connect() instead of mysql_connect() to correct the problem. We highly recommend contacting your developer to ensure that the scripting on the website is compatible with PHP 8.0.

Hi there,

this core trac issue provides some insight to the problem:

https://core.trac.wordpress.org/ticket/51988

Main point is related to the mysql_connect() function call - which according to that trac mysql was deprecated for: mysqli

Might be worth sharing that with your host.

Now it works, thank you :)

You're welcome

This archived topic is closed to new replies.