[wp-trac] [WordPress Trac] #55280: Unsupported operand types in Site Health

WordPress Trac noreply at wordpress.org
Tue Mar 1 15:38:14 UTC 2022

#55280: Unsupported operand types in Site Health
 Reporter:  lw5           |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Site Health   |     Version:  5.9.1
 Severity:  normal        |  Resolution:
 Keywords:  php8          |     Focuses:  administration, multisite
Changes (by SergeyBiryukov):

 * keywords:  reporter-feedback => php8


 Hi there, thanks for the report.

 It looks like this can happen if one of the entries in the cron array is
 not an integer timestamp as it's supposed to be, but a non-numeric string

 This was fixed in [33936] / #33475 for WordPress 4.4, and a descriptive
 error message was added in [50143] / #49961 for WordPress 5.7. However,
 the current fix just means that new events cannot be scheduled with a non-
 numeric timestamp. If there is already an existing event like that, it
 remains in the array.

 I'm open to suggestions on what a correct fix here would be. I think just
 hiding the notice in Site Health would not be ideal, we may need an
 upgrade routine to clean up the cron array and remove any events with an
 invalid timestamp.

Ticket URL: <https://core.trac.wordpress.org/ticket/55280#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list