0

Hello I keep getting one error every now and again:

Warning: date() expects parameter 2 to be long, string given in /home/web/public_html/set.php on line 727

Below you can see that like ( 727) Any soluctions how to deal with this problem?

        <div class="bb"><?= date("d.m.y h:i:s",$full_list[ssctime]) ?><input type=hidden id="ssctime" value="<?=$full_list[ssctime]?>"></div>
3
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by pritaeas
0

The 2 param must be an integer relating to a unix timestamp. It's just possible that this is blank or text?

0

Make sure $full_list[ssctime] is a timestamp. If there are characters in there, or perhaps when it is empty, it triggers this error. Where does that value come from?

0

Well it is used to save time for cache reset:

<DIV class="box1">
    <div class="dd" style="width:150px; text-align:left">
        <div class="bb"><h4>Next Cache Update</h4></div>
    </div>
    <div class="dd" style="width:350px;">
        <div class="bb"><?= date("d.m.y h:i:s",$full_list[ssctime]) ?><input type=hidden id="ssctime" value="<?=$full_list[ssctime]?>"></div>
    </div>
</DIV>

Once saved, it will be stored in text file, which values should i change to avoid this error?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.