Make WordPress Core

Opened 16 months ago

Last modified 10 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: php80 reporter-feedback
Focuses: Cc:

Description

Hello,

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 (6)

#1 @costdev
16 months ago

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

#2 @peterwilsoncc
16 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 follow-up: @domagron
16 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
16 months ago

Apologies. I was looking at the wrong server. Here is the error log

https://1drv.ms/u/s!Asw7ieIRufLVgoJj56XV0WtN2EUEVg?e=oGbkru

#5 in reply to: ↑ 3 @hellofromTonya
10 months ago

Replying to domagron:

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.

@domagron after deactivating the plugins, did the issue still happen? If yes, were you able to identify which plugin caused it?

#6 @hellofromTonya
10 months ago

  • Keywords php80 added; needs-patch php8 removed

Reviewed this ticket to determine if it is an incompatibility with PHP 8.0 and should be listed in the known incompatibilities for WP 6.3.

Findings: no, with the information at this time. This ticket is still being investigated to determine if it is a plugin that is incompatible with PHP 8+ or something in Core. Until determined to be a Core issue, the php-compatibility focus should not be added to the ticket.

Ticket changes:

  • Removed needs-patch keyword. The ticket needs investigation first to determine if changes are needed in Core.
  • Changed php8 to php80 to denote PHP 8.0 is the version that increased the error severity.
Note: See TracTickets for help on using tickets.