Fatal error after switching to PHP 8.2
-
Hello, dear Tanvirul!
After switching the site server to PHP 8.2, the site admin panel stops working.Fatal error: Uncaught Error: Call to undefined function create_function() in /wp-content/plugins/smooth-back-to-top-button/admin/class-sbttb_settings_api.php:123 Stack trace: #0 /wp-content/plugins/smooth-back-to-top-button/admin/class-sbttb_settings.php(21): SBTTB_Settings_API->admin_init() #1 /wp-includes/class-wp-hook.php(308): SBTTB_Settings->admin_init() #2 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /wp-includes/plugin.php(517): WP_Hook->do_action() #4 /wp-admin/admin.php(175): do_action() #5 /wp-admin/site-health.php(10): require_once('…') #6 {main} thrown in /wp-content/plugins/smooth-back-to-top-button/admin/class-sbttb_settings_api.php on line 123
In the frontend everything is OK.
When rolling back to PHP 7.4, the problem disappears.
Please investigate this issue.
Thank you!
- The topic ‘Fatal error after switching to PHP 8.2’ is closed to new replies.