Fatal error: Uncaught TypeError: Unsupported operand types: string – int
-
After upgrading a site to PHP 8, I’m seeing the following debug error on the site health page. Host says that this is a coding error but this would seem to be a core file in WordPress. The site is running WP 6.1.1 and all plugin and themes are up to date. Can anyone shed light on this?
Fatal error: Uncaught TypeError: Unsupported operand types: string – int in /xxxx/public_html/wp-admin/includes/class-wp-site-health.php:2794 Stack trace: #0 /xxxx/public_html/wp-admin/includes/class-wp-site-health.php(1763): WP_Site_Health->has_missed_cron() #1 /xxxx/public_html/wp-admin/includes/class-wp-site-health.php(194): WP_Site_Health->get_test_scheduled_events() #2 xxxx/public_html/wp-admin/includes/class-wp-site-health.php(139): WP_Site_Health->perform_test() #3 xxxx/public_html/wp-includes/class-wp-hook.php(308): WP_Site_Health->enqueue_scripts() #4 /xxxx/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /xxxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /xxxx/public_html/wp-admin/admin-header.php(118): do_action() #7 /xxxx/public_html/wp-admin/site-health.php(96): require_once(‘/xxxx…’) #8 {main} thrown in /xxxx/public_html/wp-admin/includes/class-wp-site-health.php on line 2794
- The topic ‘Fatal error: Uncaught TypeError: Unsupported operand types: string – int’ is closed to new replies.