#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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Should be fixed in 2.0.