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 the below two errors when viewing WP-Forum after...
- Add SEO Friendly Page Titles To The WP-Forum WordPress Plugin Awhile back I found some code that described how to...
- Description: mysql_real_escape_string() expects parameter 1 to be string, object given When attempting to process an order using ClientExec you may...
- WordPress NextGen Gallery – Add Date Print Out to Compact Album Listings I was working on my personal blog and wanted to...
- WARNING: Your version of iTALM requires upgrading please visit the upgrade page I have been using iTunes Affiliate Link Maker (iTALM) for...
Tags: bang, bug, function, PHP, plugin, WordPress, WP-Forum
























Entries (RSS)