I am working on the same issue. We noticed that making the absolute URL’s value be empty and setting the length to 0 causes the image to display properly. However this is not a fix we can feasibly apply to all data and would require a code change to ensure the value s:135:"http://thewire-dev.subdomainommitted.org/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg"; is set to s:0:"" in the options array.
Is there a way to make the data more portable by either of the following:
(A) Always set that specific element in the options array to be an empty string (i.e. s:0:"")
(B) Have the path be relative such that the length is consistent regardless of hostname
a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:28:"Missing-Equine-Photo.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:28:"Missing-Equine-Photo.jpg.jpg";s:4:"path";s:107:"/app/wwwroot/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:3:"url";s:0:"";s:5:"width";i:200;s:6:"height";i:248;s:4:"size";s:24:"width="200" height="248"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}
We will have to modify the existing data for both approaches above, but we want to mitigate the possibility for data corruption and ease of use for future database imports.
Please advise.
Thanks!
