Another item to note is the latest version of WordPress has a bug with the PHP ul function as noted by Michael Visser. This causes the following error to show up:
Warning: date() expects parameter 2 to be long, string given in
www/wp-content/plugins/wp-forum/forum-functions.php on line 668
This error can be resolved by editing cookie.php in wp-content/wp-plugins/wp-forum/ and replacing this
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;
}
The only change is removing the bang(!) from before isset on the second line of the code.
Tags: bang, bug, function, PHP, plugin, WordPress, WP-Forum














Entries (RSS)