Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#51474 closed defect (bug) (invalid)

Impossible to access staging site when WP Cron is disabled on PHP8

Reported by: gevcen's profile gevcen Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5.1
Component: Cron API Keywords:
Focuses: Cc:

Description

Dear,

My live site is running fine on PHP 7.4, and I created a staging running on PHP8 but then it's impossible to access it because it's throwing instantly an error as below :

Warning: Constant DISABLE_WP_CRON already defined in /home/customer/www/DOMAIN/public_html/disable_wp_cron.php on line 2

Site specific error? or WordPress incompatibility with PHP8?

Thanks

Attachments (3)

Capture.PNG (21.9 KB) - added by gevcen 4 years ago.
wp-config.php (3.6 KB) - added by gevcen 4 years ago.
disable_wp_cron.php (75 bytes) - added by gevcen 4 years ago.

Download all attachments as: .zip

Change History (6)

@gevcen
4 years ago

#1 @ravipatel
4 years ago

disable_wp_cron.php Can you share this file. On root default wordpress not exits.

@gevcen
4 years ago

#2 @peterwilsoncc
4 years ago

  • Keywords needs-testing removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

@gevcen Hello and welcome to Trac!

The constant is defined in both disable_wp_cron.php and wp-config.php, in PHP 8 this was changed from a notice to a warning. See the test code at https://3v4l.org/fTLBp

As both of these files are user configured, it's not something Core can help with fixing. I suggest you get assistance in the WordPress support forums.

I'm closing this ticket as invalid as this can't be fixed by Core. In this case invalid is Trac's unfriendly term to indicate you've been referred to support.

#3 @SergeyBiryukov
4 years ago

  • Component changed from General to Cron API
Note: See TracTickets for help on using tickets.