I am using Hotaru CMS with the Image Upload plugin, I get this error if I try to attach an image to a post, otherwise there is no error:
unserialize()
You can fix broken serialize string using following function, with multibyte character handling.
function repairSerializeString($value) { $regex = '/s:([0-9]+):"(.*?)"/'; return preg_replace_callback( $regex, function($match) { return "s:".mb_strlen($match[2]).":\"".$match[2]."\""; }, $value ); }