PHP UPGRADE TO 8.0

  • Unknown's avatar

    I asked my website hosting provider to upgrade my PHP to version 8.0. The update attempt corrupted my website, which was restored using a backup.

    The initial error during update:

    An error of type E_ERROR was caused in line 889 of the file /home/stefanvu/public_html/wp-content/themes/stefanvucak/functions.php. Error message: Uncaught Error: Call to undefined function create_function() in /home/stefanvu/public_html/wp-content/themes/stefanvucak/functions.php:889

    My website provider said:

    The function create_function() is being called in the functions.php file at line 889, but this function no longer exists in the version of PHP you are using. The create_function() was deprecated and removed in PHP 7.2 and later versions. To fix this, you need to replace create_function() with an anonymous function.

    Although I can change the functions.php file code, the problem I have, what ‘anonymous function’ do I put into Line 889? I can supply existing code. My hosting provider stated I have to sort this out myself. I am hoping you will be able to assist to resolve this issue.

    Regards,

    Stefan

  • Unknown's avatar

    We can’t help with self-hosted sites nor can we help with third party or custom made themes. The developer of your theme should be capable to correct this problem, if not you have to find another theme.

  • The topic ‘PHP UPGRADE TO 8.0’ is closed to new replies.