This is the code that is creating the error for this user
modules/UserPreferences/UserPreference.php
PHP Code:
function isPreferenceSizeTooLarge($category = 'global',$returnCount=false){
$user = $this->_userFocus;
//retrieve the user preferences for this category, then serialize and encode the way the string would be stored in db
if(!isset($_SESSION[$user->user_name . '_PREFERENCES'][$category])){
$contents='';
}else{
$contents = base64_encode(serialize($_SESSION[$user->user_name . '_PREFERENCES'][$category]));
}
//log error if string is too large
if (strlen($contents)>65535){
$GLOBALS['log']->fatal("USERPREFERENCE::isPreferenceSizeTooLarge - User preference for user: '$user->user_name' and category '$category' did not pass size check as it is ".strlen($contents)." characters long which is too big to save.");
}
//check returnCount flag to see whether we return true/false or actual count of content size
if($returnCount){
return strlen($contents);
}elseif (strlen($contents)>65535){
return true;
}
return false;
}
What can i do to make the data be less than 65535 characters?
I mean what data is it looking at?
Bookmarks