Make WordPress Core

Opened 4 months ago

Last modified 3 weeks ago

#60388 new defect (bug)

WordPress Core error message in my Website

Reported by: jptf's profile JPTF Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Site Health Keywords: has-patch
Focuses: Cc:

Description (last modified by sabernhardt)

Hello,

Can you help me to fix this problem (see below). I tried several fixes but none worked...
Thanks
JP Fernandes

Fatal error: Uncaught TypeError: Unsupported operand types: string - int in /.../wp-admin/includes/class-wp-site-health.php:2985
Stack trace: #0 /.../wp-admin/includes/class-wp-site-health.php(1764): WP_Site_Health->has_missed_cron()
#1 /.../wp-admin/includes/class-wp-site-health.php(194): WP_Site_Health->get_test_scheduled_events()
#2 /.../wp-admin/includes/class-wp-site-health.php(139): WP_Site_Health->perform_test()
#3 /.../wp-includes/class-wp-hook.php(324): WP_Site_Health->enqueue_scripts()
#4 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#5 /.../public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /.../wp-admin/admin-header.php(118): do_action()
#7 /.../wp-admin/site-health.php(96): require_once('/.../...')
#8 {main} thrown in /.../wp-admin/includes/class-wp-site-health.php on line 2985

Change History (3)

#1 @sabernhardt
4 months ago

  • Component changed from General to Site Health
  • Description modified (diff)

#2 @sabernhardt
4 months ago

I think this is related to #58221

This ticket was mentioned in PR #6539 on WordPress/wordpress-develop by cookieguru.


3 weeks ago
#3

  • Keywords has-patch added

Fixes the error PHP Fatal error: Uncaught TypeError: Unsupported operand types: string - int in /path/to/wp-admin/includes/class-wp-site-health.php

Trac ticket: https://core.trac.wordpress.org/ticket/60388

Note: See TracTickets for help on using tickets.