WP-Forum PHP Date function bug fix

1 star2 stars3 stars4 stars5 stars (No Ratings Yet)
Loading ... Loading ...

Warning: date() expects parameter 2 to be long, string given in /htdocs/michaelvisser/wp-content/plugins/wp-forum/forum-functions.php on line 668

Look familiar? There is a bug in the current release of WP-Forum which exists in the plugin’s PHP function ul() hidden away in cookies.php of the plugin root directory. To fix this issue open cookies.php with your favourite text editor and replace…

function ul($user_id){
if(!isset($_COOKIE[’session’])){
update_usermeta( $user_id, ‘lastvisit’, time() );
return true;
}
return false;
}

with…

function ul($user_id){
if(isset($_COOKIE[’session’])){
update_usermeta( $user_id, ‘lastvisit’, time() );
return true;
}
return false;
}

Save your changes and refresh the page. All done.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

About the Author -


Post a Comment

Your email is never shared. Required fields are marked *

*
*