WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#17600 closed defect (bug) (duplicate)

Warnings showing in media-upload.php chain

Reported by: rhuan.barreto Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1.3
Component: Media Keywords:
Focuses: Cc:

Description

The warnings are shown on simply open of Media Files tab of the popup iframe Upload Image. I've installed the backtrace tool and the warnings was the following:

Backtrace from warning 'explode() expects parameter 2 to be string, array given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2390:

/home/rhuancom/public_html/blog/wp-includes/query.php 2390 calling explode()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()
Backtrace from warning 'in_array() expects parameter 2 to be array, null given' at /home/rhuancom/public_html/blog/wp-includes/query.php 2399:

/home/rhuancom/public_html/blog/wp-includes/query.php 2399 calling in_array()
/home/rhuancom/public_html/blog/wp-includes/query.php 2895 calling get_posts()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 454 calling query()
/home/rhuancom/public_html/blog/wp-includes/class-wp.php 501 calling query_posts()
/home/rhuancom/public_html/blog/wp-includes/functions.php 1527 calling main()
/home/rhuancom/public_html/blog/wp-admin/includes/post.php 1019 calling wp()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 1916 calling wp_edit_attachments_query()
calling media_upload_library_form()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 344 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/includes/media.php 811 calling wp_iframe()
calling media_upload_library()
/home/rhuancom/public_html/blog/wp-includes/plugin.php 395 calling call_user_func_array()
/home/rhuancom/public_html/blog/wp-admin/media-upload.php 123 calling do_action()

These errors appear above the search box. And similar errors appear below the box. This don't prevent from searching and adding an image, but it's seems to be a bug and i'm reporting here.

Sorry for any wrong english. I'm brazilian.

Change History (1)

comment:1 @nacin4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#17556 #17559

You can temporarily fix it wit the Hotfix plugin.

Note: See TracTickets for help on using tickets.