PHP Fatal error (PHP 8.1): eos-deactivate-plugins.php
-
Hi Jose! I hope you’re well. We’re experiencing a PHP Fatal error in our server error log – it appears to be since moving to PHP 8.1.
I’ve so far been unable to narrow down when the error occurs, but it’s potentially when a user logs in or accesses something that’s a user specific part of the site.
It is of course possibly unrelated to FDP but as the mu-plugin is mentioned in the Stack trace I thought it might be of interest:
[12-Apr-2022 07:08:40 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /website.com/wp-includes/capabilities.php:693 Stack trace: #0 /website.com/wp-includes/functions.php(3481): current_user_can('unfiltered_html') #1 /website.com/wp-includes/formatting.php(2050): get_allowed_mime_types() #2 /website.com/wp-content/mu-plugins/eos-deactivate-plugins.php(1666): sanitize_file_name('sitename') #3 /website.com/wp-content/mu-plugins/eos-deactivate-plugins.php(218): eos_dp_get_opts_by_url('website.com/...') #4 /website.comk/wp-settings.php(349): include_once('/website.com/...') #5 /website.com/wp-config.php(176): require_once('/website.com/...') #6 /website.com/wp-load.php(50): require_once('/website.com/...') #7 /website.com/wp-blog-header.php(13): require_once('/website.com/...') #8 /website.com/index.php(17): require('/website.com/...') #9 {main} thrown in /website.com/wp-includes/capabilities.php on line 693
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘PHP Fatal error (PHP 8.1): eos-deactivate-plugins.php’ is closed to new replies.