Like so
<script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>
<link rel="stylesheet" href="/assets/snippets/maxigallery/slimbox/css/slimbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/slimbox_lang_en.js"></script>
<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/slimbox.js"></script>
<link rel="stylesheet" href="/assets/snippets/maxigallery/css/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/assets/snippets/maxigallery/slimbox/css/slimbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/slimbox_lang_en.js"></script>
<script type="text/javascript" src="/assets/snippets/maxigallery/slimbox/js/slimbox.js"></script>
<link rel="stylesheet" href="/assets/snippets/maxigallery/css/default.css" type="text/css" media="screen" />
from here
http://www.xviewct.com/industrial-ct-scans/medical-pharmaceutical-devices/inhaler-device-1
I’ve tried editing the maxigallery.class.inc.php file to remove all lines fo code, my error goes away, and all of the resources as well.. so it appears the code is being run twice.
I must also say this is on 9.6.3, I’m afraid to upgrade it for fear of other problems.. but it’s probably worth a shot, anyone have any ideas?
How many maxi calls you have on this page?
did u consider using &disable_js_libs=`1` and adding the libs manually?
I am disabling the libs, there is only 1 call on the page
post your maxigallery call.
if you set &disable_js_libs=`1` there shouldn’t be any js added to the headers.
The double js including happens in some server environments with certain modx version. I think it’s fixed in latest version, but not 100% sure.. In any case, you can use the disable_js_libs parameter and include the js manually if you don’t want to upgrade.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."