#51474 closed defect (bug) (invalid)
Impossible to access staging site when WP Cron is disabled on PHP8
Reported by: |
|
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)
Change History (6)
#2
@
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.
disable_wp_cron.php Can you share this file. On root default wordpress not exits.