memberlist.php error since upgrade to 3.6.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hnjco
    Member
    • Jul 2006
    • 55
    • 3.6.x

    memberlist.php error since upgrade to 3.6.1

    Since i upgrade to 3.6.1(few days ago) Whenever i click on Members list first i see almost 26 line of error and then members name etc plus i can see same error on top of users profile(few of them).
    I have checked this with disable plugins buts its same
    Warning: mktime() expects parameter 4 to be long, string given in /memberlist.php on line 674
  • Mike Sullivan
    Former vBulletin Developer
    • Apr 2000
    • 13327
    • 3.6.x

    #2
    This is actually caused by a PHP bug that exists only in one PHP version (5.1.0 or 5.1.1, don't recall off hand). You should update your PHP if possible (5.1.6 is the latest).

    Either way, you can change this line in memberlist.php:
    Code:
    $userinfo['birthday'] = vbdate($vbulletin->options['calformat2'], mktime(0, 0, 0, $bday[0], $bday[1], 1992), false, true, false);
    to:
    Code:
    $userinfo['birthday'] = vbdate($vbulletin->options['calformat2'], mktime(0, 0, 0, intval($bday[0]), intval($bday[1]), 1992), false, true, false);

    Comment

    • hnjco
      Member
      • Jul 2006
      • 55
      • 3.6.x

      #3
      Well i already have latest version of PHP which is 5.1.6
      but let me try to edit memberlist.php


      EDIT


      Thanks Mike

      Its fixed now
      Last edited by hnjco; Mon 18 Sep '06, 7:51am.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...