PHP Fatal error: Uncaught Error: Call to undefined function ini_set()

  • Unknown's avatar

    I was using wordpress 6.2 with php 7.4. I just updated my site php version to 8.0 and site is down now. Upon browsing it says critical error. The server log says:

    PHP Fatal error: Uncaught Error: Call to undefined function ini_set() in /home/……./public_html/wp-includes/load.php:485

    Any leads on what can be the issue? Site works perfectly fine with version 7.4

  • Hello there,

    Many thanks for reaching out.

    Are you able to confirm the URL of the website that you need assistance with please?

  • Unknown's avatar

    I am experiencing exactly the same problem so I will be very interested in the outcome.

    My site is hosted on webhosting.uk.com who are saying that a theme or plugin is the problem, but the error is coming from line 7550 of functions.php in the wp-includes folder.

    Andy

  • Unknown's avatar

    My site is working now.

    The solution was to change the PHP handler from PHP-FPM to Fastcgi – there’s a dropdown with a few choices within the Webhosting.uk admin pages for the site.

    Andy

  • The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function ini_set()’ is closed to new replies.