BCcampus / open-sage

Theme for open.bccampus.ca
MIT License
1 stars 0 forks source link

Open site: Book covers displaying as "not found" when I add the image dimensions #204

Closed josieg closed 5 years ago

josieg commented 5 years ago

Describe the bug To display book cover images on the open site and in the collection, I first upload the cover to the media library on the open site, copy a link to that media file, and paste that link to the book's record page in SOLR. To make the book cover display as the right size, I add -151x196 in front of the file extension (.jpg).

Problem: Now, when I add the image dimensions, I get a "file not found" error for the image.

To Reproduce Steps to reproduce the behaviour:

  1. Log in to https://open.bccampus.ca/admin
  2. Click Media > Add New
  3. Upload a cover image (could be any image).
  4. Select the image you uploaded.
  5. Copy link to image
  6. Past link in a new window.
  7. Hit enter. The image appears.
  8. Add the image dimensions to the link (-151x196.jpg)
  9. Hit enter. You get a file not found error.

For some reason, this only seems to happen for images added since April 9th. If I repeat the above steps with one of the images uploaded before then, the image will resize properly, even though I've followed the exact same steps. This makes me thing that something has changed in WordPress.

Expected behavior I expect that when I insert -151x196 before the file extension on the url for an image that the image will display as the correct size.