Error in resizing (unserialize())
-
Hello,
I installed the plugin on my website and tried to run it to resize all the pictures that were already present. The progress was very slow and it doesn’t seem to have done anything. I tried to resize the single pictures as well and it didn’t work.
I checked the debug log and I’m seeing this error:
unserialize(): Error at offset 1635 of 2522 bytes in <path>/plugins/resmushit-image-optimizer/classes/resmushit.class.php on line 341
`
I went into the file and the line throwing the error is:
$tmp['attachment_metadata'] = isset($image->file_meta) ? unserialize($image->file_meta) : array();
I have recently migrated my website and had to make manual changes in the database because of the changes in storage and URL. I’m not a PHP expert but as far as I understand the length of a value in serialized data is important when turning it into an array.
Is my analysis correct? If so, I assume that the problem is in the postmeta table, but what kind of entries should I check?
Sorry if this is confused, I don’t have any experience with PHP, I’m just trying to figure it out based on knowledge in other languages.Thanks,
Ben
- The topic ‘Error in resizing (unserialize())’ is closed to new replies.