On entering the Forum we are getting:
Warning: date() expects parameter 2 to be long, string given in /home/blended/public_html/fpcj/wp-content/plugins/wp-forum/forum-functions.php on line 666
How do we fix this?
On entering the Forum we are getting:
Warning: date() expects parameter 2 to be long, string given in /home/blended/public_html/fpcj/wp-content/plugins/wp-forum/forum-functions.php on line 666
How do we fix this?
That is an issue thus far, i'm completely rewriting this plugin. expect version 2.0 to be out in couple of weeks.
Thanks. Tough having a forum that gives a Sunday School class an error on line 666 ;-}
lmao
Any progress?
yeah. 2.0 will be out in a week or so.
Hummm?
Tried everything I could, but I still get this text on top of the page when entering the forum:
Warning: date() expects parameter 2 to be long, string given in /home/sensitivep/domains/sensitivepeople.nl/public_html/wp-content/plugins/wp-forum/forum-functions.php on line 666
please help?
Until this problem is fixed in the official code release, it can be fixed by editing /plugins/wp-forum/forum-functions.php line 666:
Original:
$visit = "<span><br />You last visited: ".date(get_option('forum_date_format'), get_usermeta($user_ID, 'lastvisit'))."</span>";
Updated:
$visit = "<span><br />You last visited: ".date(get_option('forum_date_format'), get_usermeta($user_ID, 'lastvisit')+0)."</span>";
The change is the addition of "+0" near the end of the function call. Be sure to place it within the correct set of parentheses.
This topic has been closed to new replies.