• I have Offload Media set to Cloudfront (CNAME cdn.mysite.xx) and before this incident only some images were not seen in the library and on the site, for which I had to edit the box and Replace the image, the same as Although it appeared in the library, it was NOT seen on the web. So, I would upload the same image from my local computer and that’s how the images looked both on the web and in the library.

    After installing Offload Media, I uploaded hundreds of images to the S3 buck from the media library.
    When I found that NOT ONE is seen I despaired.

    I thought it was a problem with paths and, with Better Search and Replace 🙂 I changed the paths in the database, instead of https://mysite/wp-uploads/ …. I set https://cdn.mysite. … blA bla

    I also changed with Redirect plugin the Source url: /wp-content/uploads/(.*)$ for the Target url: https://cdn.mysite/wp-content/uploads/$1 (Type: Regex)

    Now in the library I don’t see ANYTHING. Also, Offload Media plugin did not erase local media files.

    Please, I have the screen under construction because some images are not visible on the online site, although most are.

    This is very crazy, while I do not see the images on the desktop of the media library
    but the same images are seen on the web.

    Some psychiatrist or good boy or girl to help me 🙂 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter riaugus

    (@riaugus)

    UPDATE!!!!!

    I see some images !!!
    They are only the ones that the path is https://mysite/wp-content/uploads,
    Instead, the ones that point to https://cdn.mysite/wp-content/uploads are NOT seen in the library

    what the hell …..

    Thread Starter riaugus

    (@riaugus)

    UPDATE

    I restored the backup and the site came back as if there was no OLM. I left the files in the bucket but moved them out of the / wp-uploads / 2021/06 etc etc directories, moved them to the root of the bucket, and then removed those directories.

    After the site was clean and active again, I reinstalled OLM LIte, with the CDN subdirectory on Cloudfront. So the existing images in the bucket I see perfectly in the media library and the URL points to the CDN, and the local subdirectory (wp-uploads …) remains intact and was not deleted.
    Now, if I upload new images to the media library they look perfectly in the library, their URL points to the Coudfront CDN, and they are seen from a browser with the same URL (CDN Cloudfront).

    Now the images are in the bucket at / wp-uploads …. Of course … they took about 12 hours to appear, because in that period they were NOT seen in the bucker from the AWS console.
    Now each image is in a directory inside wp-uploads / 2021 / xx.
    I would like to know if the pre-existing images that were left in the root of the bucket, outside of / wp-uploads, could I delete them.

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

The topic ‘I can’t see library images…. please !!!’ is closed to new replies.