Script not found even though it is there
Permalink
Howdy! I'm building a block to use highcharts, and have run into a perplexing problem. I have three scripts in a folder, one of which is called "timeseries_chart.js". The others are the highcharts.js and theme.js. I've used addHeaderItem, to inject the scripts. The chart script gets injected into the header as
I have no idea where the v=e82285157c7cdfe46ec163aee5835829 bit comes from, but it is somehow wrong. The other highcharts scripts are found, but the chart is not.
Where is this numeric tail coming from, and how do I get concrete to change it? I've cleared and disabled the cache, but it does not help. Any ideas?
<script type="text/javascript" src="/sflux5/concrete/js/timeseries_chart.js?v=e82285157c7cdfe46ec163aee5835829"></script>
I have no idea where the v=e82285157c7cdfe46ec163aee5835829 bit comes from, but it is somehow wrong. The other highcharts scripts are found, but the chart is not.
Where is this numeric tail coming from, and how do I get concrete to change it? I've cleared and disabled the cache, but it does not help. Any ideas?
Figured it out, but I'm scratching my head. It seems that CM5 will default to the concrete/js directory, and only using the full path from the root in the call to addHeaderItem() would get the proper directory which is just /js. Interesting.
Is there an error message for this kind of thing that I have turned off, or is there no error checking at all? Just wondering, because I have the site set to development settings and get no error. Just a silent fail.
Is there an error message for this kind of thing that I have turned off, or is there no error checking at all? Just wondering, because I have the site set to development settings and get no error. Just a silent fail.
So, the "v=" parameter on all of them is wrong. I'm still perplexed, but at least it's more consistent than I thought... :(