[wp-trac] [WordPress Trac] #23409: Featured Images Not Working when From Media Library
WordPress Trac
noreply at wordpress.org
Thu Feb 7 02:45:19 UTC 2013
#23409: Featured Images Not Working when From Media Library
---------------------------------------+------------------------------
Reporter: saracup | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.5.1
Severity: normal | Resolution:
Keywords: needs-testing needs-patch |
---------------------------------------+------------------------------
Comment (by saracup):
I am in 3.5.1, Multisite, all plugins disabled, using Twenty-Twelve theme.
While editing a post, when clicking on "Set Featured Image" in the meta
box, I get the popup and select the image. I then click "Save Featured
Image." The box closes. The meta box displays nothing -- just the original
"Set Featured Image" link. So, I Update the post. Still, no featured
image.
Going through the above steps, I decide instead to upload an image from my
computer. When I do, and select it as my featured image, it works.
It seems to choke only on files that are already in the media library.
Using the backtrace-error.php file, I go to the media library. My
thumbnails are blank, and there is an error on every image. The error
refers to "wp-includes/capabilities.php." and is worded, for each image,
as follows:
Backtrace from warning 'Trying to get property of non-object' at /[my
server filepath]/wp-includes/capabilities.php 1075:
1. calling map_meta_cap()
2. /[my server filepath]/wp-includes/capabilities.php 926
calling call_user_func_array()
3. calling has_cap()
4. /[my server filepath]/wp-includes/capabilities.php 1289
calling call_user_func_array()
5. /[my server filepath]/wp-admin/includes/class-wp-media-
list-table.php 306 calling current_user_can()
6. /[my server filepath]/wp-admin/includes/class-wp-list-
table.php 796 calling display_rows()
7. /[my server filepath]/wp-admin/includes/class-wp-list-
table.php 736 calling display_rows_or_placeholder()
8. /[my server filepath]/wp-admin/upload.php 240 calling
display()
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23409#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list