• MindTag Technical Support

    (@mindtag-technical-support)


    Hello all.

    My client has informed me that they are unable to upload images to their Media library at all, it keeps giving them an error. “An error occurred in the upload. Please try again later.”. Going onto the server, the images are being recognized, but not completing their upload, so the files are there but they are corrupt.

    When viewing the Media Library, in grid view, there is only one blank “image” there, which you can’t click on at all and the refresh circle keeps appearing and disappearing as if its in an infinite loop.

    When using the List view, there are quite a few (no title) – Logo “Images” there. After those, are the images that are on the server correctly.

    I have already been to my hosting company, to help find any issues on the hosting that might be causing this, but they couldn’t find anything at all. I’ve also checked the Database for errors, but I couldn’t find one.

    Please can someone help me fix this issue? My client needs to be able to upload their images to their website.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    Thread Starter MindTag Technical Support

    (@mindtag-technical-support)

    Unfortunately, that one didn’t help.

    I think its the fact that there are the (no title) – Logo entries, that have no date or any data at all. That are causing the issue.

    When I tried the images that I’ve tested on my own websites media library, they uploaded completely. Both websites are using the same hosting provider and package.

    Moderator t-p

    (@t-p)

    When I tried the images that I’ve tested on my own websites media library, they uploaded completely. Both websites are using the same hosting

    I would also discuss this the hosting provider. They may shed some light.

    Thread Starter MindTag Technical Support

    (@mindtag-technical-support)

    I have already been to my hosting company, to help find any issues on the hosting that might be causing this, but they couldn’t find anything at all.

    Is there a way to ask one of the Developers to have a look into this issue for me? I’m still very stuck on this issue.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    This is the place to post and there aren’t developers to look at your problem. That’s not how these forums work.

    Going onto the server, the images are being recognized, but not completing their upload, so the files are there but they are corrupt.

    Have you tried the usual troubleshooting steps?

    Please try the following temporary steps to troubleshoot:

    • Switch to the Twenty Seventeen theme
    • Deactivate all of your plugins, no exceptions
    • Clear your browser’s cache and cookies
    • Re-login and visit the post editor and try to upload media

    Do you still get the problem when you do that?

    If that doesn’t do it then it is likely a hotlink protection issue and the host really needs to look at that too.

    4 months later – this issue still pops up.
    Just had my second website (both sites are unrelated) show the same behavior:
    Grid view of media library not loading (list view works) and several (no title) – Logo “Images” in the list-view.

    admin-ajax.php just keeps on reloading itself in grid view (already 180 entries in the Network console log now , and still going …)

    update: The problem only occurs when I try to grid-watch ALL categories … when I select a specific category from the dropdown , the thumbs show up.

    I did :
    -Switch to the Twenty Seventeen theme
    -Deactivate all of your plugins, no exceptions
    -Clear your browser’s cache and cookies
    -Re-login and visit the post editor and try to upload media

    I also have no errors (check with debug -> true) on the 2 sites

    • This reply was modified 6 years, 10 months ago by belgianwolfie.
    • This reply was modified 6 years, 10 months ago by belgianwolfie.
    Moderator t-p

    (@t-p)

    Side note to @belgianwolfie,

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic. A lot more people will see your post this way. That way you stand a good chance of getting the assistance you want.

    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.

    Thanks belgianwolfie! This fixed the first half of my issue: media library no longer showing thumbnails.

    however, the second half is I still cannot upload any images as they then behave the same way. I did notice that the drop down for the filters stops on December 2017. In my FTP structure however, I have a 2018 folder with 1 image in the 01 folder. I cannot find that image in my database. Ultimately I feel this is where the problem occured and I need to clean up 2018 (or purge it so my site thinks the next thing will be the first thing for 2018). Any idea how to keep this from happening again once you’ve removed those that qualified under the SQL syntax above?

    I had the same problem. Once I removed the entries that had an ID of 0. I updated the table structure in the wp_post table so that the ‘ID’ column was the primary key for the table and set that column to auto increment. Once I made that change, I was able to upload images again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Media Library is broken’ is closed to new replies.