Hello! My site (pbjlearning.com) has a blog and I added LiteSpeed to help image loading.
Randomly, images were not working on the site, and after digging in, it appears what is happening is the filenames are being changed in LiteSpeed, and the connection through my WordPress media get broken when the names don't match.
Here is one image example
From this post:
https://pbjlearning.com/2022/06/27/more-reports-on-intl-day-against-drug-abuse-nagaland-post/
In WordPress (media and the blog post that displays it), the file is referred to as its ORIGINAL filename:
https://pbjlearning.com/wp-content/...intl-day-against-drug-abuse-nagaland-post.jpg (PLEASE NOTE THE ORIGINAL DOES NOT HAVE DIMENSIONS IN THE FILENAME)
On my fileserver, the file has been turned into a bunch of files, (there was never a version called "768x576"):
more-reports-on-intl-day-against-drug-abuse-nagaland-post-768x576.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-768x576.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-768x576.bk.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-600x450.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-600x450.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-600x450.bk.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-300x225.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-300x225.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-300x225.bk.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-100x100.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-100x100.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-100x100.bk.jpg
NOTE THE ORIGINAL FILE IS NOT ON MY SERVER ANY LONGER
Here are my questions:
1) This does not happen on every post / image. Why would some work and others not?
2) How can I fix this without going through each and every blog, seeking the original filename, and then individually renaming those files?
3) Even if I do go back and rename them all:
a) would they get re-optimized and the original change again?
b) would those additional images (with the file sizes, etc) be used for optimization?
4) How can I prevent this from breaking images in the future? All I can think of right now is to disable LiteSpeed. Yikes!
Ultimately it looks like what's happening is that the optimization is removing (or completely renaming) the original file and this renaming is breaking the link from the blog to the image file.
Ideas?
Randomly, images were not working on the site, and after digging in, it appears what is happening is the filenames are being changed in LiteSpeed, and the connection through my WordPress media get broken when the names don't match.
Here is one image example
From this post:
https://pbjlearning.com/2022/06/27/more-reports-on-intl-day-against-drug-abuse-nagaland-post/
In WordPress (media and the blog post that displays it), the file is referred to as its ORIGINAL filename:
https://pbjlearning.com/wp-content/...intl-day-against-drug-abuse-nagaland-post.jpg (PLEASE NOTE THE ORIGINAL DOES NOT HAVE DIMENSIONS IN THE FILENAME)
On my fileserver, the file has been turned into a bunch of files, (there was never a version called "768x576"):
more-reports-on-intl-day-against-drug-abuse-nagaland-post-768x576.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-768x576.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-768x576.bk.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-600x450.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-600x450.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-600x450.bk.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-300x225.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-300x225.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-300x225.bk.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-100x100.jpg.webp
more-reports-on-intl-day-against-drug-abuse-nagaland-post-100x100.jpg
more-reports-on-intl-day-against-drug-abuse-nagaland-post-100x100.bk.jpg
NOTE THE ORIGINAL FILE IS NOT ON MY SERVER ANY LONGER
Here are my questions:
1) This does not happen on every post / image. Why would some work and others not?
2) How can I fix this without going through each and every blog, seeking the original filename, and then individually renaming those files?
3) Even if I do go back and rename them all:
a) would they get re-optimized and the original change again?
b) would those additional images (with the file sizes, etc) be used for optimization?
4) How can I prevent this from breaking images in the future? All I can think of right now is to disable LiteSpeed. Yikes!
Ultimately it looks like what's happening is that the optimization is removing (or completely renaming) the original file and this renaming is breaking the link from the blog to the image file.
Ideas?
Attachments
-
94.9 KB Views: 3
-
99.9 KB Views: 3
-
31.7 KB Views: 3
-
257.4 KB Views: 3
-
228.1 KB Views: 3
-
170.6 KB Views: 2
Last edited: