php 8.1 upgrade crash
-
When I updated php to 8.1 from 7.4 I got a critical error and could no longer access the WP panel
The page I need help with: [log in to see the link]
-
The reason for the error should be visible in the error log. You can find it in your hosting area. If necessary, the support of your hosting can help you.
Alternatively, you could also enable debugging in WordPress. How to do this is described here: https://www.ads-software.com/support/article/debugging-in-wordpress/ – also here the support of your hosting can help you if necessary to edit the file accordingly.
In both cases you should be able to see what the cause is in the logfile.
Threadi…Once I set up debugging, switched back to php8.1 and tried to log in to WP panel this come up. Is there something here I can fix?
Thank you
Fatal error: Uncaught Error: Call to undefined function create_function() in /home/v6bunlittv7j/public_html/wp-content/themes/paeon/includes/widgets/widget-adspace.php:124 Stack trace: #0 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/classes/class-loader.php(110): require() #1 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/classes/class-loader.php(90): NiceThemes\PHP_File_Manager\Loader->load_php_file() #2 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/functions.php(89): NiceThemes\PHP_File_Manager\Loader->load() #3 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/component.php(138): NiceThemes\PHP_File_Manager\load() #4 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/component.php(96): nice_load() #5 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/includes/loader.php(42): nice_loader() #6 /home/v6bunlittv7j/public_html/wp-includes/class-wp-hook.php(324): nice_load_widgets() #7 /home/v6bunlittv7j/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /home/v6bunlittv7j/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/includes/loader.php(47): do_action() #10 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/classes/class-loader.php(110): require(‘/home/v6bunlitt…’) #11 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/classes/class-loader.php(90): NiceThemes\PHP_File_Manager\Loader->load_php_file() #12 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/functions.php(89): NiceThemes\PHP_File_Manager\Loader->load() #13 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/component.php(138): NiceThemes\PHP_File_Manager\load() #14 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/component.php(96): nice_load() #15 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/components/php-file-manager/component.php(78): nice_loader() #16 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/engine/bootstrap.php(97): nice_loader() #17 /home/v6bunlittv7j/public_html/wp-content/themes/paeon/functions.php(22): require_once(‘/home/v6bunlitt…’) #18 /home/v6bunlittv7j/public_html/wp-settings.php(672): include(‘/home/v6bunlitt…’) #19 /home/v6bunlittv7j/public_html/wp-config.php(100): require_once(‘/home/v6bunlitt…’) #20 /home/v6bunlittv7j/public_html/wp-load.php(50): require_once(‘/home/v6bunlitt…’) #21 /home/v6bunlittv7j/public_html/wp-admin/admin.php(34): require_once(‘/home/v6bunlitt…’) #22 /home/v6bunlittv7j/public_html/wp-admin/index.php(10): require_once(‘/home/v6bunlitt…’) #23 {main} thrown in?/home/v6bunlittv7j/public_html/wp-content/themes/paeon/includes/widgets/widget-adspace.php?on line?124
The error message is caused by the commercial theme paeon you are using. The version you are using does not appear to be compatible with PHP 8.0 or newer.
I would recommend that you switch back to PHP 7.4 and install all pending updates, including those for this theme. If you do not receive any updates from the theme, you have 2 options:
- Contact their support with the problem: https://themeforest.net/item/paeon-medical-wordpress-theme/6010663/support
- Find another theme that is compatible with PHP 8.0 or newer. There are many free ones to choose from: https://www.ads-software.com/themes/
- You must be logged in to reply to this topic.