Error 500 after upgrading to PHP 8 (Function create_function() )
-
Hi,
I’m having a problem with WordPress and I would be grateful if something could help me. When upgrading from PHP 7.3. to 8.0. or 8.1. (neither of the two work), the web page is in Error 500 and no URL resolves. I have updated WordPress to the latest version 6.2.2. and all plugins and themes. I have tried to deactivate all the plugins (renaming the plugins folder) and nothing, it still doesn’t work. The fact is that I have activated the error logs to see where the issue comes from, and I get the following error (taking into account that it does not come from any plugin because I have tried to disable them all, how do you think I could solve this problem? Thank you so much!:
thrown in /wp-includes/init.php on line 265
[23-May-2023 19:12:25 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /wp-includes/init.php:265
Stack trace:0 /wp-includes/init.php(33): MimeTypeDefinitionService->prepareDir()
1 /wp-includes/init.php(336): MimeTypeDefinitionService->init()
2 /wp-config.php(96): include_once(‘…’)
3 /wp-load.php(50): require_once(‘…’)
4 /wp-blog-header.php(13): require_once(‘…’)
5 /index.php(17): require(‘…’)
6 {main}
thrown in /wp-includes/init.php on line 265
-
Hi there,
What is the URL of the site where you are experiencing this error? I see a few WordPress.com sites and several Jetpack connected sites under your account. If it is a self-hosted site connected via Jetpack, I would recommend reaching out to your site host for assistance with this error, as we won’t be able to directly assist since we do not have access to your site and account.
Here is information on addressing the HTTP 500 error you are receiving:https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/
But, let us know and we’d be happy to point you in the right direction for support. Thanks!
- The topic ‘Error 500 after upgrading to PHP 8 (Function create_function() )’ is closed to new replies.