Opened 16 years ago
Closed 16 years ago
#9863 closed defect (bug) (fixed)
PHP Notice: Constant ABSPATH already defined at install.php
Reported by: | lilyfan | Owned by: | dd32 |
---|---|---|---|
Milestone: | 2.8 | Priority: | high |
Severity: | blocker | Version: | 2.8 |
Component: | Upgrade/Install | Keywords: | has-patch tested |
Focuses: | Cc: |
Description
A PHP Notice below occurrs at wp-admin/install.php
Notice: Constant ABSPATH already defined in /Users/lily/Sites/wp/28/wp-load.php on line 20
There is no need to define ABSPATH at line 20 of install.php.
The place of wp-load.php is fixed at root directory of Wordpress,
therefore we can include wp-load.php as below:
require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch attached. Tested in PHP 5.2.9-2 on IIS 7.5 via FastCGI.
This should be a blocker because it prevents users from loading the installation script.