• I have been unable to upload any new media files to the media library. WP lets me upload but the images/files do not show up correctly nor work. More context below.

    Background:
    -I am an admin who knows just enough to be dangerous
    -I tried uploading media files yesterday (4/12) using WP v4.4.2 and today (4/13) using WP v4.5. Same issue with both versions.
    -Tried multiple file formats in different sizes to test
    -I contacted hosting/server provider; everything works on their end
    -I checked and rechecked theme and plug-ins (this includes deactivating and activating); all compatible with 4.5
    -I cleared caches on all browsers
    -Site is working fine on front end; need a solve to be able to continue updates on back end.

    Steps and outcomes:
    1. Dragged media files into uploader (also tried selecting from computer)
    2. Media uploads progress bar shows progress
    3. Final media image is a small blue box with a question mark. Tried testing link which does not work. Link url looks correct.

    I saw a few different posts related to Media Library but none matched quite exactly and more than a few got off topic by 4.5 disgruntles. I simply want to find a fix for my client at the very earliest possible time. Thanks in-advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Here’s what I suggest, check the file path ( clicking the media ) and cross check the FTP client to ensure it’s where WordPress thinks it is. If not, come back and post the differences. I suspect something has changed in the upload path at some point recently.

    If you’re familiar with browsers, each one has “Developer Tools” ( which you may want to google a bit ). Check your dev console for any JS errors.

    Another thing you can try is to turn on Debugging in hopes that maybe the debug log will catch some clues to narrow down the issue.

    Try some of the above and post your results so maybe we can help you, otherwise if you figure it out please post how you solved it!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    -I checked and rechecked theme and plug-ins (this includes deactivating and activating); all compatible with 4.5

    Did you do it all at once? That is disable plugins and switch to a default theme at the same time?

    Final media image is a small blue box with a question mark. Tried testing link which does not work. Link url looks correct.

    Is the image on the server where the admin says it should be? If you edit the image, you can see the path, so check it on your server.

    Have you added an UPLOADS define in your wp-config? (I’m not asking you to do that, I’m just asking if you have already)

    Hi guys,

    Similar problem here.

    I have defined a different uploads folder in wp-config.php

    /** Change File Uploads Directory */
    
    define( 'UPLOADS', 'media' );

    but now the upload URL of the file is totally wrong

    https://www.mydomain.com/wp-content/uploads//home/hostingUser/public_html/media/2015/10/white-dress-bride1578280-1.mp4

    I reverted to the previous WP version and works fine, so must be the update

    Thread Starter raskers

    (@raskers)

    Thank you @howdy_mcgee and @ipstenu. I am investigating now and will post more as a navigate through your suggestions.

    Thread Starter raskers

    (@raskers)

    Hello @here. I think I figured out the issue but I do not know how to fix it. Excuse my lack of proper terminology in-advance. Here goes:

    @howdy_mcgee: I checked the file path and client. They are different but here’s where it gets tricky. The public_html is showing two sites. Yes, two sites. And I have no idea why. Note: I recently uploaded/connected a new site from a test site with the subdomain of https://www.mbnew.com/mollybrowntemps.com I made this change in late March and ensured only one site was in the public_html. I haven’t been back in the file manager until now given this issue. #confused

    One is the site “mbnew” in which is the current site. However, the file structure is screwed up. The only subfolder within this parent folder is wp-content. This is where the media uploader currently wants to host images. The remaining wp-admin, wp-content (duplicate) and wp-includes are not subfolders, rather parent folders at the same level as “mbnew.”

    The other is “mbnew_backup” which shows the correct structure from parent folder to subsequent subfolders.

    The previous developer (back in 2010-ish) used BackUp Buddy. Not sure this matters. I have back-ups of the site stored in my cloud storage and think I can delete one or both but it makes me nervous. S.O.S.!
    ——
    To answer additional questions from your initial responses…

    Re: dev console.
    Error: Failed to load resource: the server responded with a status of 404 (not found)
    Warning: Unexpected CSS token

    Re: debugger
    I haven’t tried this yet.

    @ipstenu:
    Re: plug-ins and theme
    I did deactivate at once and switch to default theme

    Re: image on server
    No.

    Re: UPLOADS define in wp-config
    No.

    I had a similar issue today…

    I found a temp fix. I don’t know if this will help your issue, but you never know. https://www.ads-software.com/support/topic/media-library-image-upload-issue?replies=2

    g05k3539

    (@g05k3539)

    Hey,
    I had an issue too and found out that my share host was running php version 5.5.36. I had to add ”AddHandler application/x-httpd-php56 .php” to the .htaccess file to get the server to run php 5.6

    I hope this helps

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error/Broken: Media Library Image Upload’ is closed to new replies.