[Resolved] php8 error

Home Forums Support [Resolved] php8 error

Home Forums Support php8 error

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1738720
    Bernhard

    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?

    #1738751
    Bernhard

    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.

    #1738824
    David
    Staff
    Customer Support

    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.

    #1739673
    Bernhard

    Now it works, thank you 🙂

    #1739862
    David
    Staff
    Customer Support

    You’re welcome

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.