Intégrations de js avec Joomla - Erreur de MIME

Intégrations de js avec Joomla - Erreur de MIME - HTML/CSS - Programmation

Marsh Posté le 17-03-2013 à 21:51:27    

Bonjour,
 
J'ai un soucis sur mon site Web (http://www.alexandre-rio.fr/joomla/) que je suis en train de construire avec Joomla. J'ai créé mon propre template avec tous mes js que j'ai besoin dedans (j'utilise Bootmetro un dérivé de BootStrap notamment).
 
Mais j'ai un soucis lors du chargement de la page pour chacun de mes js :
 

Code :
  1. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery-1.8.2.min.js". www.alexandre-rio.fr:18
  2. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/jquery-1.8.2.min.js:1
  3. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery.form.js". www.alexandre-rio.fr:18
  4. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery.blockUI.js". www.alexandre-rio.fr:18
  5. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery.mousewheel.js". www.alexandre-rio.fr:18
  6. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/jquery.blockUI.js:1
  7. Uncaught SyntaxError: Unexpected token < jquery.form.js:1
  8. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery.scrollTo.js". www.alexandre-rio.fr:18
  9. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery.validate.js". www.alexandre-rio.fr:18
  10. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/jquery.mousewheel.js:1
  11. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/jquery.scrollTo.js:1
  12. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/jquery.validate.unobtrusive.js". www.alexandre-rio.fr:18
  13. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/jquery.validate.js:1
  14. Uncaught SyntaxError: Unexpected token < jquery.validate.unobtrusive.js:1
  15. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/modernizr-2.6.1.min.js". www.alexandre-rio.fr:18
  16. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/modernizr-2.6.1.min.js:1
  17. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/mustache.js". www.alexandre-rio.fr:18
  18. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/mustache.js:1
  19. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/bootstrap.min.js". www.alexandre-rio.fr:18
  20. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/bootstrap.min.js:1
  21. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/bootmetro.js". www.alexandre-rio.fr:18
  22. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/bootmetro.js:1
  23. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/bootmetro-charms.js". www.alexandre-rio.fr:18
  24. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/bootmetro-charms.js:1
  25. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/bootstrap-datepicker.js". www.alexandre-rio.fr:18
  26. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/bootstrap-datepicker.js:1
  27. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/google-code-prettify/prettify.js". www.alexandre-rio.fr:18
  28. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/holder.js". www.alexandre-rio.fr:18
  29. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/holder.js:1
  30. Uncaught SyntaxError: Unexpected token < prettify.js:1
  31. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/RGraph.common.core.js". www.alexandre-rio.fr:18
  32. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/RGraph.common.core.js:1
  33. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/RGraph.common.dynamic.js". www.alexandre-rio.fr:18
  34. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/RGraph.common.dynamic.js:1
  35. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/RGraph.radar.js". www.alexandre-rio.fr:18
  36. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/RGraph.radar.js:1
  37. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/RGraph.common.effects.js". www.alexandre-rio.fr:18
  38. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/RGraph.common.effects.js:1
  39. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/RGraph.bar.js". www.alexandre-rio.fr:18
  40. Uncaught SyntaxError: Unexpected token < /joomlatemplates/template_portfolio/js/RGraph.bar.js:1
  41. Resource interpreted as Script but transferred with MIME type text/html: "http://www.alexandre-rio.fr/joomlatemplates/template_portfolio/js/RGraph.hbar.js". www.alexandre-rio.fr:18
  42. Uncaught SyntaxError: Unexpected token <


 
Le mauvais MIME entraîne une balise HTML dans le javascript et du coup ça le fait planter... Mais je vois pas comment le résoudre j'ai déjà rajouter :

Code :
  1. <?php Header("Content-Type: application/x-javascript; charset=UTF-8" ); ?>


mais ça n'a rien changé.
 
Je n'ai rien trouvé sur internet. J'utilise Chrome comme navigateur mais j'ai le même soucis avec IE 9.
 
Merci de vos lumières,
 
magic9110


Message édité par magic9110 le 17-03-2013 à 21:52:49

---------------
Ma collection de jeux vidéo : https://www.gamelib.fr/?page=bibliotheque&user_id=2
Reply

Marsh Posté le 17-03-2013 à 21:51:27   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed