WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#17824 closed defect (bug) (duplicate)

Warning In the Media Library

Reported by: sunsuron Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1.3
Component: Administration Keywords:
Focuses: Cc:

Description

New WP 3.1.3 installation. Enable Error and go to Media Library

Warning: explode() expects parameter 2 to be string, array given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2390

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Warning: in_array() expects parameter 2 to be array, null given in D:\devel\htdocs\jrvacation.com.my\upload\wordpress\wp-includes\query.php on line 2399

Possible fix:

// line 2390
$q_status = (!is_array($q['post_status'])) ? explode(',', $q['post_status']) : $q['post_status'];

or

// comment line 2390
// edit line 2399
if ( in_array( $status, $q['post_status'] ) ) {

etc

Attachments (1)

pdf.png (93.1 KB) - added by sunsuron 4 years ago.
Warning in Media Library

Download all attachments as: .zip

Change History (3)

@sunsuron4 years ago

Warning in Media Library

comment:1 @kawauso4 years ago

  • Keywords needs-patch has-patch removed
  • Resolution set to duplicate
  • Status changed from new to closed

#17556

Please install the Hotfix plugin for now.

comment:2 @ocean904 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.