We started using an AWS server to host our images. It is accessible from anywhere, not limited to our network. But DW doesn't show the hosted images in Design View. It shows them in Live View. No other server ever had this problem with DW. How to fix that? I tried deleting DW's cache, but it did nothing.
Copy link to clipboard
What code is serving up the images? Design view shouldn't be used as an accurate representation of your page, but rather a rough estimation without scripting or dynamic elements. The fact that your images are not showing leads me to believe that they are being served up dynamically and thus the Design View cannot render them.
It's email coding, Ben, and I've been doing this for a long time, so it's not a path issue or a primary error. No scripts or dynamic elements involved. It's the first time I see it single out a path -- if I replace the hosted image with a path to an image hosted on another server, it works normally. If I use the local image, it also works normally. If I preview the html on a browser, it shows the images. That's the reason why I think it's a cache problem, although rebuilding it didn't fix the problem. It's like DW blacklisted our new server, because even paths to different folders on it show as broken.
Try this code in a new document.
Can you see the image?
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Image test</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> </head> <body> <img src="https://dummyimage.com/425x200" alt="placeholder"> </body> </html>
In design view, no. But if I replace it with a path to an image hosted in our Eloqua servers, for example, it shows it.
OK. Go to Site > Advanced > Reset Site Cache.
I don't have that option. The closest is "Recreate Site Cache" and it's grayed out. I don't have a site set up, I don't need that.
I don't have a site set up, I don't need that.
Oh, yes you do. A local site folder is required to work with DW. Go to Site > New Site and create a local folder, preferably on your primary hard drive -- i.e. C:\MyTestSite\. Without a defined local site folder, DW can't correctly manage links and assets for you. You can use the same site folder for all your email projects.
No, I absolutely don't need to set up a site. In any case, it's not relevant to this case. I have coded emails for the last 8 years in this same job and this is the first time DW does not show hosted images apparently based on where they are hosted and does not get fixed after rebuilding the cache.
I also use AWS to host external assets. In my experience, when images don't appear it's because the AWS bucket does not have correct permissions for it or the locally defined site cache is damaged in some way.
You can try Restoring Preferences to see if that helps.
Failing that, feel free to reach out to Adobe support for technical assistance.
CONTACT ADOBE SUPPORT:
Online Chat: https://helpx.adobe.com/contact.html?rghtup=autoOpen
Phone M-F, during normal business hours: https://helpx.adobe.com/contact/phone.html
Restoring Preferences didn't do it. And an AWS configuration issue that only affects DW and not a browser wouldn't make sense, unless DW depends on something that the browser doesn't in order to show the images. Considering how buggish DW has been since the changes that were made after CS6 (I have reported a bunch of problems, some were resolved, but it still has plenty hindering my work, including crashing randomly, sometimes several times a day, when the Properties panel is used, like happened a minute ago), I am inclined to believe it's a cache issue.
This made me lose half of my snippets, and that's possibly over 50 of them that I use on a daily basis. How to I bring them back? I can only hope there is a back up version of the folder containing them.
The image in the code above doesn't show in design view because it's missing the extension. As soon as you add .png, it shows.
That's odd. It works for me without an extension. DW 2021 on Windows 10.
DW 21.2 on a Mac, it doesn't show for me:
Did you save the file to your local site folder yet?
Yes, it's saved. DW had just crashed, so I got it back from there.
Well, hopefully resetting the Preferences will also fix the constant crashing. And I was able to get my snippets back, DW automatically creates a backup folder, I just copied them back to the current snippets folder. As for the images, I'll keep trying to figure it out. It's weird that it's affecting DW and not the browsers.
Which Mac OS do you have?
To your snippets question earlier if you just dragged them to the trash, you can restore the preferences from the trash. Otherwise they would need to be synced with the cloud or backed up (Time Machine). It's weird that Nancy's code is not working for you without the PNG extension. I have DW 21.2 with Mac OS 12.2.1 and I am not noticing this behavior and see the image without the extension.
Can you try running the disk utility to repair permissions on your system? There could be a permissions issue that is impacting your DW installation in this case and could cause erratic behavior. In cases I've come across odd Mac problems that can't be explained, something else to consider is logging in as an additional user or guest user and seeing if the problem can be replicated in a clean user account with its own Library. Sometimes over time that can become corrupted or run into issues that cannot easily be explained, but an account migration could resolve your issue.
I didn't drag my snippets to the trash, why would I do that? I followed Nancy's suggestion to restore Preferences and it erased half of the snippets. Luckily, it apparently creates a backup folder before moving on to restore them to the original state, so I just copied them back. Logging in as a different user is out of question, as our laptops are packed with restrictions imposed by our IT, it's a huge company with lots of security. I was recently given Admin permissions on mine, but that is most likely restricted to things in my user's environment. I may try to repair permissions, but I think I have done that before for another DW problem and it didn't fix it.
Done with repairing permissions, disk utility didn't find anything wrong.
Have you tried creating a new page with just the image, no further code. If that shows up in design view, then I think you may have a coding error in your document.
If that does not show, then I think that you are out of luck and you should be using a program that does work.
Yes, I tried that, but I already knew it's not coding error, it only happens with the images hosted in our AWS server. I still think it's a cache issue, like when I started using this new server I once used the wrong path to the folder where the images are saved and it obviously showed as a broken image, then when I corrected it, DW had somehow got stuck with anything using the base URL as pointing to a place it couldn't access. It just doesn't seem to be the regular cache, because I've rebuilt it and it's still doing the same thing.