Date Error In Functions.php


Subject: Date Error In Functions.php
Hi all again ;)


I get this error randomly navigating my site:

Quote:

Warning: date() expects parameter 2 to be long, string given in /...SERVER'S_PATH.../www/includes/functions.php on line 840



that is something related to:


Code: [Download] [Hide]
  1. case SERVER_SWITCH:  
  2. $dst_sec = date('I', $gmepoch) * $userdata['user_dst_time_lag'] * 60;  
  3. return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz) + $dst_sec), $translate) : @gmdate($format, $gmepoch + (3600 * $tz) + $dst_sec);  
  4. break;  
  5.  



I think...


The latest thing I did was to reset max user ever online by phpmyadmin, if this could help...


(I already checked file permissions and cleared cache)



Edit: I just noticed that the max users online parameter in portal is not stored, but it changes exactly with the current usersonline number... :roll:

Subject: Re: Date Error In Functions.php
I think you may have some hosting problems... :roll:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2896s (PHP: 5% SQL: 95%)
SQL queries: 13 - Debug Off - GZIP Enabled