Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Media Library is broken

Discussion in 'Misc WordPress Requests' started by belgianwolfie, Jan 26, 2018.

  1. belgianwolfie


    Reply To: Media Library is broken, by belgianwolfie

    agreed @t-p

    I have good news tho.
    After (rough estimate) 8 hours of debugging in total I finally found and fixed the issue.

    Go to your wp-posts table and do
    SELECT * FROM wp_posts WHERE ID = ‘0’ AND post_type = ‘attachment’

    If you get a result back , you’re in for a treat, cause you’ll be able to resolve the issue.
    Delete the entries that have 0 as ID (I had 4).

    Grid view should be operational now.

    That said – I believe ID should be a primary unique key in wp_posts … no clue how the 0’s were forced in there (all 4 of them).
    Guessing it would be ok to put primary key back on ID.

    Reply To: Media Library is broken

Share This Page

Monarch Social Sharing Plugin