WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#8848 closed defect (bug) (fixed)

ACP: fatal error when a plugin issues chdir()

Reported by: vladimir_kolesnikov Owned by:
Milestone: 2.7.1 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Warning: require(./admin-footer.php): failed to open stream: No such file or directory in /wp-admin/index.php on line 44
Fatal error: require(): Failed opening required './admin-footer.php' (include_path='.:/usr/local/lib/php') in /wp-admin/index.php on line 44

This happens when a plugin for some reason chdir()s to another directory and WP then fails to find the file.

Attachments (1)

patch.diff (314 bytes) - added by vladimir_kolesnikov 7 years ago.

Download all attachments as: .zip

Change History (3)

@vladimir_kolesnikov7 years ago

comment:1 @ryan7 years ago

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

(In [10378]) Use ABSPATH when including footer. Props vladimir_kolesnikov. fixes #8848 for trunk

comment:2 @ryan7 years ago

(In [10379]) Use ABSPATH when including footer. Props vladimir_kolesnikov. fixes #8848 for 2.7

Note: See TracTickets for help on using tickets.