I’ve just enabled my javascript debugger because I was busy on some script, and it found a bug in the forum part(I don’t know about other parts of the website).
Error:
Line: 1282
Error: ‘document.forms.dstform’ is null or not an object
The linenumber of the error is dynamic, it’s about this piece of code;
<script type="text/javascript">
<!--
var tzOffset = 1 + 0;
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{
// Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
Maybe you can fix it by adding an IF check;
<script type="text/javascript">
<!--
var tzOffset = 1 + 0;
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{
//check if we've got a form to submit...
if(document.forms.dstform != NULL)
{
// Dst offset is 1 so its changed
document.forms.dstform.submit();
}
}
//-->
</script>