• Resolved rocketsprocket

    (@rocketsprocket)


    My clients website is now missing all her images. In the media library the permalink and the file URL to the image are both the same: http://www.carolinewilliams.co.nz/client-galleries/image/cw1809-284. As I have the images organised into date folders the file URL should be something like http://www.carolinewilliams.co.nz/wp-content/uploads/2018/10/cw1809-284.

    The reason i think it’s something to do with sunshine cart is that the image endpoint is specified as “image” = Current image URL example: http://www.carolinewilliams.co.nz/client-galleries/image/image-slug

    I’m not quite sure what’s happened to give the media files the same file URL as specified in the sunshine cart settings. The images are still on the server in their respective folders.

    I’ve updated to the latest version of wordpress and updated all plugins and I’m running the enfold theme which is updated to the latest version.

    The menu wasn’t working either which I tracked down to be a corrupt wp-postmeta table which I repaired and fixed that issue.

    So what should I do to fix it? Given that new images uploaded to the site upload fine with the correct url and permalink.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Images uploaded into Sunshine galleries go into their own separate folders within the file structure of your site, not the normal date-based folders of WordPress.

    They should look like:

    /wp-content/uploads/sunshine/ID

    ID = The unique ID within WordPress for the gallery.

    Thread Starter rocketsprocket

    (@rocketsprocket)

    So yes the images uploaded into sunshine galleries have gone into their own separate folders within the file structure of the site.

    But no, the file URL is not /wp-content/uploads/sunshine/ID as expected
    The file url for these images has now become client-galleries/image/cw1809-284 which happens to be the endpoint specified in the settings of sunshine.

    This has happened to all images in the media library. What do I need to do to fix this? A search and replace in the database for the file url string?

    I have requested a backup of the database from the host so as to reinstate the links prior to it changing but I’m baffled as to how all the file URLs changed. Would a corrupt database table do this?

    I think there is a misunderstanding. The file URL is indeed “wp-content/uploads/sunshine/ID/filename.jpg”. If you went to http://www.yourdomain.com/wp-content/uploads/sunshine/ID/filename.jpg the image alone will pull up in your browser like any other image on a website would.

    The URL which Sunshine uses to display the image and purchasing options within the confines of WordPress and Sunshine is http://www.yourdomain.com/client-galleries/image/filename

    These are two very different things.

    There doesn’t sound like there are any issues or data corruption with your site.

    I am not sure if this is what you are talking about but if you go to the Media tab in the admin the images are purposefully not shown there. Many Sunshine users have thousands and thousands of images in their client galleries which they do not want overwhelming the Media library. Since these images (typically) are not intended for use anywhere else on your site except for selling through Sunshine, this is why they are hidden by default. You can show the images in your Media Library by going to Sunshine > Settings > Galleries and enable the option to show them in the Media Library.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Images “missing” in media’ is closed to new replies.