Fatal Error on PHP 8.2
-
Hi there!
I recently updated my site to PHP 8.2 and I’m now receiving a fatal error page when I go to any URL that typically Smart404 would have helped with.
Can’t be 100% certain it’s due to the update (you’re more savvy with this than I am, to be sure), but wanted to share regardless just in case.
Here’s the error:
PHP Fatal error: Uncaught Error: Call to undefined function create_function() in /home/willolov/public_html/wp-content/plugins/smart-404/smart404.php:57\nStack trace:\n#0 /home/willolov/public_html/wp-includes/class-wp-hook.php(324): smart404_redirect()\n#1 /home/willolov/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#2 /home/willolov/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#3 /home/willolov/public_html/wp-includes/template-loader.php(13): do_action()\n#4 /home/willolov/public_html/wp-blog-header.php(19): require_once('...')\n#5 /home/willolov/public_html/index.php(17): require('...')\n#6 {main}\n thrown in /home/willolov/public_html/wp-content/plugins/smart-404/smart404.php on line 57\n
I’ve now deactivated the plugin, so that my visitors at least get to a 404 page instead of a fatal error page… but sure would love a fix!
Many thanks
- The topic ‘Fatal Error on PHP 8.2’ is closed to new replies.