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

Opened 5 years ago

Last modified 5 years ago

Call to undefined function is_wp_error() when there's no wp-config.php at install

Reported by: jottlieb Owned by: rob1n
Priority: normal Milestone: 2.2.1
Component: General Version: 2.2
Severity: normal Keywords: is_wp_error is_wp_error() install wp-config.php
Cc:

Description

If you try to start to install WP without having a wp-config.php and execute /wp-admin/install.php (!), it appears just the following error:

Fatal error: Call to undefined function is_wp_error() in path\wp-includes\functions.php on line 1320

Change History

  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned
  • Status changed from assigned to closed
  • Resolution set to fixed

(In [5507]) Don't call is_wp_error() in wp_die() if it hasn't been defined yet. fixes #4308

comment:3   ryan5 years ago

wp-blog-header.php includes classes.php, functions.php, plugin.php before issuing wp_die(). This shouldn't be necessary.

comment:4   ryan5 years ago

My reading comprehension ain't so good. This is for install.php, which doesn't do the includes. Nevermind. :-)

Note: See TracTickets for help on using tickets.