Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#9863 closed defect (bug) (fixed)

PHP Notice: Constant ABSPATH already defined at install.php

Reported by: lilyfan's profile lilyfan Owned by: dd32's profile dd32
Milestone: 2.8 Priority: high
Severity: blocker Version: 2.8
Component: Upgrade/Install Keywords: has-patch tested
Focuses: Cc:


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)

9863.patch (572 bytes) - added by peaceablewhale 15 years ago.
Restyled the patch

Download all attachments as: .zip

Change History (3)

#1 @peaceablewhale
15 years ago

  • Keywords tested added
  • Priority changed from normal to high
  • Severity changed from normal to blocker

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.

15 years ago

Restyled the patch

#2 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11393]) Don't double define ABSPATH. Props peaceablewhale. fixes #9863

Note: See TracTickets for help on using tickets.