Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#57534 new defect (bug)

Cron events stop working after PHP 8.0 update

Reported by: domagron's profile domagron Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9
Component: Cron API Keywords: needs-patch php8 reporter-feedback
Focuses: Cc:



I noticed that all wordpress cron events cease ruining upon migrating to PHP 8.0. When I change back to 7.4 the crdo events resume.

Change History (4)

#1 @costdev
4 months ago

  • Component changed from General to Cron API
  • Keywords php8 added

#2 @peterwilsoncc
4 months ago

  • Keywords reporter-feedback added

Hi @domagron and welcome to trac!

Are you able to check your PHP logs for any errors and provide a stack trace?

WordPress has made a number of improvements for PHP 8+ recently see the keyword, especially for potential fatal errors.

A stack trace will help determine if the issue is within WordPress or a plugin that is incompatible with PHP 8+

#3 @domagron
4 months ago

The latest entry in the error log is from several weeks ago before the upgrade to 8.0. I will try deactivating plugin that use the cron one by one and manually run cron to see if it is plugin related.

#4 @domagron
4 months ago

Apologies. I was looking at the wrong server. Here is the error log!Asw7ieIRufLVgoJj56XV0WtN2EUEVg?e=oGbkru

Note: See TracTickets for help on using tickets.