PrettyPhoto Erreur: image ne peut pas être chargé. Assurez-vous que le chemin est correct et l'image existe
-
27-10-2019 - |
Question
J'ai cherché une série de forums et je l'ai remarqué que beaucoup de personnes ont eu ce même problème. J'ai essayé toutes les résolutions: en utilisant la plus Youtube URL comme
http://www.youtube.com/watch?v=GkqS5DiF2_A
définir la largeur et la hauteur de l'image, et je l'ai essayé d'utiliser les anciennes versions de JQuery. Je reçois toujours l'erreur. Je suis lié toutes les images dans le fichier CSS [correctement, mais ils sont liés :)]. J'ai essayé de résoudre ce pendant des jours et je ne sais pas ce que je fais mal.
Toute aide serait grandement appréciée. Merci!
La solution
The links to the youtube video are not direct, you are using some kind of redirects. i suggest you use direct links to the youtube video
here is a demo of your site http://www.mediafire.com/?vj3l062uza7ov61 , see the left video
Autres conseils
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.
I had the issue with WordPress, I simply removed the alert.
file: /wp-content/plugins/prettyphoto-media/js/jquery.prettyPhoto.min.js
I use http://jsbeautifier.org/ to unfold the code and comment line 350:
//alert("Image cannot be loaded. Make sure the path is correct and image exist.");