Ticket #8848 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

ACP: fatal error when a plugin issues chdir()

Reported by: vladimir_kolesnikov Owned by: anonymous
Priority: normal Milestone: 2.7.1
Component: Administration Version:
Severity: normal Keywords: has-patch
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

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

Change History

comment:1   ryan3 years ago

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

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

comment:2   ryan3 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.