• Stefania

    (@lexlawnl)


    Dear readers,

    After the latest WP update it seems impossible to upload any new images using both the multi file uploader as the media library upload function. The newly uploaded image seems to have a broken link somewhere. All “old” images are still visible on the site and in the media library. How to fix this? I tried the following solutions, all without any succes:

    *I checked the path to the upload directory on our server, which is correct
    *I checked the upload folder permissions, its 0755, also for subdirectories and the files it/they contain(s).
    *I installed Health Check plugin to disable all plugins, this also didnt fix the problem
    *In my FTP client I see that there is a folder for 2020, but not folder for 2021. This would in my opinion mean that there is some kind of access/permissions problem.

    The weird this is, that if I upload an image, and I choose “edit media”, I can see the image. This means that it is uploaded to the server but it doesn’t show in the media library. Neither is it visible when I open the link (404 not found). Furthermore, there is only one file created in the upload directory (in stead of several others in different sizes).

    Does anyone here have any idea how to fix this problem?

Viewing 1 replies (of 1 total)
  • Dave

    (@dvaer)

    Hi Stefania,

    Sounds like you’ve tried a few things already. To figure out where the problem is you could also switch on debugging in the wp-config.php file and see if any errors come up. Below is a code snippet you can use with that, which writes to a debug.log file in your wp-content folder.

    /* WP_DEBUG - Turns WordPress debugging on/off */
    define( 'WP_DEBUG', TRUE );
    if( defined( 'WP_DEBUG' ) && TRUE === WP_DEBUG ) {
        /* Log everything to '/wp-content/debug.log' */
        define( 'WP_DEBUG_LOG', TRUE );
        /* Prevent errors from displaying on-screen */
        define( 'WP_DEBUG_DISPLAY', FALSE );
    }

    There may also be hints in any other error logs on your server.

    One other thought is that there may be a permission problem in a folder higher in your directory structure, so I would check that as well.

    Finally, you could check with your host if there have been any changes there or if they spot anything unusual.

    I hope this helps. Good luck with it!

Viewing 1 replies (of 1 total)
  • The topic ‘Only newly uploaded images won’t show’ is closed to new replies.