Images from subdomain not displaying in editor
-
I’ve been in the process of migrating a site from a local testing server to a live server. After doing so, the site wound up receiving additional modifications, one of them was the addition of the Smart Slider 3 plugin.
First off, this is how I have everything configured:
The site and WordPress install is inhttps://mysite.org/mywordpressfolder
, where/mywordpressfolder
is in the root of the directory. The subdomain is at/media
, also in the root, and it uses the subdomainhttps://media.mysite.org
.The plugin was working as intended until I realized that I hadn’t updated WordPress’
upload_path
to reflect the subdomain from which I serve images.Based on my hosting service, I updated my
upload_path
to:var/chroot/home/content/00/000000/html/media
and myupload_url_path
tohttps://media.mysite.org
.I verified that I could now upload an image again and that it’d wind up in the correct directory. I could and it did.
However, I very quickly found out that this caused all the thumbnails (save for the one on the slide editor page – the one above the “content” and “canvas” buttons and left of its file name) on the back end of Smart Slider 3 to disappear, along with the larger image displayed in the individual slide editor. The images still appear on the front end with no problem, and the settings still show the images at
$upload$/2018/01..
as it should.I tried uploading a brand-new image and inserting it in the slide – to no avail, just the same blank thumbnail.
I went ahead and opened up the Smart Slider in my code inspector and discovered that Smart Slider 3 seems to be pulling the back end images incorrectly, as this is what it’s writing:
https://mysite.org/mywordpressfolder/wp-content/var/chroot/home/content/00/000000/html/media/resized/d3deadd05672f882974341f6f4c2e65c/myimage.jpg
However, it has properly generated the resized image in the correct directory, as I can access said image using the following URL:
https://media.mysite.org/resized/d3deadd05672f882974341f6f4c2e65c/DSC03834-sm.jpg
It seems to be inserting the
upload_path
in place of the/upload
folder, instead of rewriting everything below it to the subdomain.Thank you for the help. Let me know if there is a setting I’ve missed.
-KK
- The topic ‘Images from subdomain not displaying in editor’ is closed to new replies.