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.
Related posts:
- WP Forum Upgrade Error: Warning: implode() [function.implode]: I received
- Description: mysql_real_escape_string() expects parameter 1 to be string, object given When attem
- Images Not Showing Up Properly For WP-Forum WordPress Plugin After inst
- WordPress NextGen Gallery - Add Date Print Out to Compact Album Listings I was work
- WordPress HighSlide Plugin Error: ‘hs’ is undefined When integ





































Entries (RSS)