Forums

[Plugin: WP Forum] Warning: date() expects parameter 2 to be long in forum-functions.php line 666 (10 posts)

  1. bob stevens
    Member
    Posted 3 years ago #

    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?

  2. fahlstad
    Member
    Posted 3 years ago #

    That is an issue thus far, i'm completely rewriting this plugin. expect version 2.0 to be out in couple of weeks.

  3. bob stevens
    Member
    Posted 3 years ago #

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

  4. fahlstad
    Member
    Posted 3 years ago #

    lmao

  5. bob stevens
    Member
    Posted 3 years ago #

    Any progress?

  6. fahlstad
    Member
    Posted 3 years ago #

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

  7. bob stevens
    Member
    Posted 3 years ago #

    Hummm?

  8. fahlstad
    Member
    Posted 3 years ago #

  9. marilyn26
    Member
    Posted 2 years ago #

    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?

  10. nmjk
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags