PrettyPhoto Error: Image cannot be loaded. Make sure the path is correct and the image exists

Dandy picture Dandy · Dec 2, 2011 · Viewed 8.1k times · Source

I've searched a series of forums and I've noticed that a lot of people had this same issue. I tried all the resolutions: using the longer Youtube URL like

http://www.youtube.com/watch?v=GkqS5DiF2_A

defining the width and height of the image, and I've tried using older versions of JQuery. I'm still receiving the error. I've linked all the images in the CSS file [incorrectly, but they are linked :)]. I've been trying to solve this for days and I'm not sure what I'm doing wrong.

Any help would be greatly appreciated. Thank you!

Answer

Aly Zidan picture Aly Zidan · Oct 5, 2013

It appears that you have to add ?iframe=true to the end of the hyperlink

https://stackoverflow.com/===>http://stackoverflow.com?iframe=true did the trick for me. Make sure you point direct to the web page you want to appear in the light box, not to the iframe.