Copy link to clipboard
Copied
Hello all, I am completely baffled as to why my CSS or images will not display within Design or Live view. The images and CSS are hosted on a server and was working fine. All of a sudden, iam not able to see any of the CSS or images. However, when I preview in browser, everything looks fine. Can anyone add any insight as to what has gone wrong.
My colleagues that work in the same department seem to have no problems, we are pulling the files from the same server, but for some reason I am not able to see the CSS and images no longer. I've deleted and re-installed Dreamweaver but that hasn't solved the issue. I'm using Dreamweaver 2017.0.1
Hi,
I finally got what the issue is, I did dig into the site that you are working on and while going through its source code, found that the icon that you are actually trying to load is not a png file, it is an svg file and the Design view in DW can't load/preview svg files yet.
The Live View can, because it renders everything similar to as a browser does.
Also, to see these files in related files, you need to download/save the svg file in a local site, like I did in the snapshot below- I actually
...Copy link to clipboard
Copied
Check your View Options. See screenshot.
Copy link to clipboard
Copied
Thanks for the reply, I did double check to make sure it was checked and it was, so my issue remains
Copy link to clipboard
Copied
Hi Joseph,
You can enable the option in Edit-->Preferences-->General to see Related Files. Just check the checkbox and restart Dreamweaver.
Regards,
Niharika Gupta
Copy link to clipboard
Copied
Thanks for the troubleshooting, but I had that checked, so I unchecked and rechecked and it's still not displaying. Here is an example of my issue. It previews fine.
Copy link to clipboard
Copied
From the looks of it, test.html is not a complete HTML document, thus it's throwing code errors denoted by the Error Indicator -- red X in a circle.
Try it with a fully formed document that contains no errors.
Copy link to clipboard
Copied
Thanks for the suggestion, but it seems to not display any image linked to our server. However it displays when I preview. Of the 4 designers that work here, I'm the only experiencing this issue.
Copy link to clipboard
Copied
Possibly some kind of permissions problem. Is the AMA server using blocking scripts to protect their assets?
Nancy
Copy link to clipboard
Copied
Not to my knowledge, it just all of a sudden just happen. I wasn't having this problem before and no other colleague is having this same issue displaying server content.
Thanks for your help, Ill keep digging
Copy link to clipboard
Copied
Is it something to do with your 'https' connection?
Have you tried uploading the image to an 'unsecured' server 'http' and seeing if DW pulls it in then?
Copy link to clipboard
Copied
Hi,
Please try replacing the links in your code- http with https and see if it works, also we are assuming that you have a working internet connection because images in Live View should have definitely worked if it works in Real Time Preview.
Last option would be to restart DW and see, sometimes there may be some cached images problems.
Regards,
Niharika Gupta
Copy link to clipboard
Copied
Thanks, I tried replacing the code and still nothing
I have restarting and I have deleted Dreamweaver and reinstalled it to no avail
Copy link to clipboard
Copied
Hi,
I finally got what the issue is, I did dig into the site that you are working on and while going through its source code, found that the icon that you are actually trying to load is not a png file, it is an svg file and the Design view in DW can't load/preview svg files yet.
The Live View can, because it renders everything similar to as a browser does.
Also, to see these files in related files, you need to download/save the svg file in a local site, like I did in the snapshot below- I actually used a different web link for the icon - https://www.ama-assn.org/sites/all/themes/ama_theme/ama-logo.svg
To demonstrate the difference, I also inserted an image file (not an svg) from the same site and you can see the preview in Design view.
Regards,
Niharika Gupta
Copy link to clipboard
Copied
Thanks for all the help, but it appears to be our secured server, apparently all of our assets have been moved behind a secured server and that's why anything pointing to these assets such as the images and and CSS are not displaying behind the server. I tested it by putting an image behind an unsecured server and everything works fine. Our IT is looking into it.
Thanks
Copy link to clipboard
Copied
Are you using https:// in your links?
Copy link to clipboard
Copied
Yes, I am, and the images and CSS will not display in live view, the will display in Design view, and everything looks good in Preview. I have coworkers linking to the same assets on the server without problems. It's just really weird.
Copy link to clipboard
Copied
Thanks, I will look into the permissions issue