Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1630 closed defect (bug) (fixed)

PHP_SELF in PHP as CGI

Reported by: Ozh Owned by:
Priority: normal Milestone:
Component: Administration Version: 1.5.2
Severity: major Keywords: php_self cgi
Cc: Focuses:

Description

There are some PHP configuration where PHP_SELF or $_SERVERPHP_SELF are empty ($_SERVERPHP_SELF exists but is empty)
This seems to be the problem :
'Note: If you are using CGI PHP, it must have been compiled with the --enable-force-cgi-redirect switch for $PHP_SELF to have the correct value' (from PHPlib documentation)

For blog pages, it seems not to be big deal since $pagenow returns 'index.php' as a default value, which is actually the case on any page. But the admin interface is more troublesome, and particulary the part of admin.php that handles plugin pages :

$page_hook = get_plugin_page_hook($plugin_page, $pagenow);
(line 45)

This can lead to plugins not being loaded.

Change History (2)

#1 @ryan
21 years ago

  • Milestone2.0
  • Resolutionfixed
  • Status newclosed

Should be fixed in 2.0.

#2 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.