Also please remove whitespace before first <? tag.
It gives me header send warning.
Thanks 🙂
Rychu
Dear Rychu,
Thanks for your messages. We’ll look into this and then will update you shortly.
Regards,
Sanjay Kumar
Deligence Technologies
Dear Rychu,
We have looked into it and come to know that this issue is due to PHP version. I believe you are using an old version of PHP (less than or equal to 5.2). Please confirm.
Regards,
Sanjay Kumar
Sorry for the wrong information. It was for a different issue.
We have checked and we weren’t able to reproduce this issue. Could you please provide me your site URL so that we can look into it?
Regards,
Sanjay Kumar
I had the same thing, I think it is about this line of code:
document.getElementById("date_"+id[1]).innerHTML=dnt;
with the error:
Uncaught TypeError: Cannot set property ‘innerHTML’ of null
The problem is that the element does not exist since there is no date to be shown, but the script still wants to write to the element. I solved this issue by first checking if the date option is set.
<?php if($date==1){?>
document.getElementById("date_"+id[1]).innerHTML=dnt;
<?php }?>
This seems to fix the problem.
edit:
Or this could be another problem now I look at it again, anyway this was also a bug.