• Hi folks,

    I have a strange WordPress issue. The thing is that it does not occur instantly after updating WordPress to 6.0.1

    Sometimes days or weeks later. Also, next thing is that not the entire website is down, but only the Homepage gives an Error 500. All other pages work perfectly fine. The error seems to resolve when I manually update the affected file. Sometimes I have to reinstall the entire WordPress Version.

    [05-Aug-2022 07:34:55 UTC] PHP Deprecated:  Function create_function() is deprecated in path_to/wp-includes/plugin.php on line 443
    [05-Aug-2022 07:34:55 UTC] PHP Deprecated:  Function create_function() is deprecated in path_to/wp-includes/plugin.php on line 448
Viewing 1 replies (of 1 total)
  • The message refers to a function provided by PHP. This has been marked as deprecated since PHP version 7.2 and was removed with PHP 8. You seem to be using a PHP version 7.2, 7.3 or 7.4.

    Wordpress itself does not use this feature. Surprisingly, the error message refers to a WordPress file. In the repository you can see that in the mentioned lines the function is not included at all: https://github.com/WordPress/wordpress-develop/blob/6.0/src/wp-includes/plugin.php#L443

    Based on your description, your project seems to be in a strange state. The plugin.php should not use this function if you really use the 6.0.1. Something about your hosting seems to reset this version to an older state. My recommendation would be to contact the support of your hoster.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Deprecated WP 6.0.1’ is closed to new replies.