[wp-trac] [WordPress Trac] #29161: $pagenow variable not set in admin pages on Windows systems

WordPress Trac noreply at wordpress.org
Mon Jan 5 00:51:23 UTC 2015


#29161: $pagenow variable not set in admin pages on Windows systems
-------------------------------+------------------------------
 Reporter:  Craxic             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Administration     |     Version:  3.9.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  administration
-------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => reporter-feedback


Comment:

 `$_SERVER['PHP_SELF']` should be in a URL format, regardless of if the
 host is Unix or Windows based. it's supposed to specifically contain only
 the path component, ie. `/path/to/wp-admin/` in
 `http://example.com/path/to/wp-admin/`.

 I initially thought this might be a failure in
 [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/load.php#L35 wp_fix_server_vars()] but doesn't look like that
 could be the case.

 @Craxic - Sorry it's taken so long for you to get a response here, are you
 still seeing this failure? Do you still have the server environment
 available? Could you supply us an example of the contents of the
 `$_SERVER` variable at the start of wp_fix_server_vars()?
 could you also provide as much information about the server configuration
 as you can? It really sounds like a misconfiguration of a cgi based system
 to me.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29161#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list