• 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?

Viewing 9 replies - 1 through 9 (of 9 total)
  • That is an issue thus far, i’m completely rewriting this plugin. expect version 2.0 to be out in couple of weeks.

    Thread Starter bob-stevens

    (@bob-stevens)

    Thanks. Tough having a forum that gives a Sunday School class an error on line 666 ;-}

    lmao

    Thread Starter bob-stevens

    (@bob-stevens)

    Any progress?

    yeah. 2.0 will be out in a week or so.

    Thread Starter bob-stevens

    (@bob-stevens)

    Hummm?

    fahlstad

    (@fahlstad)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP Forum] Warning: date() expects parameter 2 to be long in forum-functions.php line 666’ is closed to new replies.