#29566 closed defect (bug) (fixed)
Grid Media Library Won't Load in 4.0 w All Plugins Disabled
Reported by: | johnstonphilip | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.0.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | has-patch commit fixed-major |
Focuses: | ui, javascript | Cc: |
Description
Upon upgrading to 4.0, on 10 of my WP installs, everything is working perfectly.
However, in 1 of my installs, I can't get anything to show when the Media Library ("Dashboard" > "Media") is set to "Grid" mode. Rather, the spinner wheel just spins forever.
It DOES load correctly when I have it set to "List" mode.
I have WP_DEBUG mode on and no errors are showing. There are also no javascript errors showing in the console on Google Chrome.
Steps I have taken already:
- I have de-activated all plugins and reverted to the twenty fourteen theme
- I checked the server to make sure there is enough RAM, Hardrive space, and other resources.
- I checked permissions in apache and all are set to be owned by apache
- I restarted Apache
- I restarted the entire server (which is a LAMP setup)
- I have reverted to 3.9.2 and back to 4.0 multiple times (there is no "grid" mode in 3.9.2)
Attachments (1)
Change History (11)
#2
@
10 years ago
Hey thanks for sending that. Here is what it is showing:
Notice: Trying to get property of non-object in /var/www/vhosts/creativeready.com/wp-includes/media.php on line 2646
Notice: Trying to get property of non-object in /var/www/vhosts/creativeready.com/wp-includes/media.php on line 2650
#3
@
10 years ago
- Keywords has-patch commit added; reporter-feedback removed
- Milestone changed from Awaiting Review to 4.0.1
You have some images attached to non-existing posts.
Normally, wp_delete_post()
makes sure not to leave orphaned images.
Still, we should check if the parent post exists, like we do in class-wp-media-list-table.php.
See 29566.patch.
#4
@
10 years ago
Good call Sergey - thanks!
P.S. do you know if there is a way I can filter media to show items like that: that are attached to a post which has been deleted?
#5
@
10 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 29724:
#6
@
10 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 4.0.1.
#7
@
10 years ago
@SergeyBiryukov
Additional possibly related. Contributor role granted upload_files, grid view ajax in add media not showing uploaded images.
Media library view all grid view not showing uploaded images, list view showing images.
Hey, can you please check the response of the AJAX request?