WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 7 days ago

#54142 reviewing defect (bug)

Undefined array key "SCRIPT_NAME" in wp_fix_server_vars()

Reported by: mcjambi Owned by: SergeyBiryukov
Milestone: 5.9 Priority: normal
Severity: normal Version: 2.0
Component: Bootstrap/Load Keywords: has-patch
Focuses: Cc:

Description

My log file is increasing size day by day with this bug:
[16-Sep-2021 21:37:01 UTC] PHP Warning: Undefined array key "SCRIPT_NAME" in /home/rntlckly/public_html/wp-includes/load.php on line 79

---
PHP 8.x
Wordpress 5.8.1

Attachments (2)

54142.diff (517 bytes) - added by karpstrucking 5 weeks ago.
54142.1.diff (483 bytes) - added by audrasjb 7 days ago.
Patch refreshed against trunk for 5.9

Download all attachments as: .zip

Change History (8)

#1 @costdev
6 weeks ago

Hi @mcjambi,

This issue is usually related to cron jobs, or server configuration, such as when running with fastcgi, etc. This support thread may be relevant to you.

If you are unable to resolve the issue from that thread, please create a new thread in the WordPress Support forums, providing some information about your server configuration and whether this is occurring when accessing WordPress via browser or if you're using another method.

#2 @SergeyBiryukov
6 weeks ago

  • Component changed from General to Bootstrap/Load
  • Summary changed from Bug in wp-includes/load.php to Undefined array key "SCRIPT_NAME" in wp_fix_server_vars()
  • Version changed from 5.8.1 to 2.0

Hi there, welcome back to WordPress Trac! Thanks for the report.

It looks like this code was introduced in [3034] and adjusted in [3069]. Changing the Version field accordingly.

@karpstrucking
5 weeks ago

#3 @karpstrucking
5 weeks ago

  • Keywords has-patch added

#4 @SergeyBiryukov
5 weeks ago

  • Milestone changed from Awaiting Review to 5.9

#5 @SergeyBiryukov
5 weeks ago

  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


7 days ago

@audrasjb
7 days ago

Patch refreshed against trunk for 5.9

Note: See TracTickets for help on using tickets.