Hello ,
I got this Notice
Notice: unserialize(): Error at offset 491 of 500 bytes in C:\xampp\htdocs\shopsystem\src\UserProfile.php on line 271what is mean ?
Hello ,
I got this Notice
Notice: unserialize(): Error at offset 491 of 500 bytes in C:\xampp\htdocs\shopsystem\src\UserProfile.php on line 271what is mean ?
What is the code in UserProfile.php on line 271? You may post it for more discussion.
here is the code :
// Load profile from string
protected function loadProfile($profile)
{
$ar = unserialize(strval($profile));
if (is_array($ar)) {
$this->Profile = array_merge($this->Profile, $ar);
}
}
it’s not my own code , the code generated by deffult
The error means the profile string stored in the profile field cannot be serialized, it might be corrupted or the user saved something else. You may check the data in the profile field or delete it.
I think the problem is with memo Profile Field in MYSQL database , I have change Field Length/Values from 500 to 3000 ,
And it’s work fine … Thanx