[wp-testers] Thumbnails not updated correctly
Ryan Scheuermann
ryan at concept64.com
Sat May 20 19:20:19 GMT 2006
Hi Karl,
This is a known issue. It's being fixed in the next version of WP, but
as a solution to your current problem...
The database stores the file path as a serialized array in the
database. So, when you're looking through the DB values, you'll see
something like this:
"file";s:62:"/home/username/public_html/wp-content/uploads/images/plant.jpg"
That number (62) is the number of bytes/characters in the value
(/home/username/public_html/wp-content/uploads/images/plant.jpg). So
when you change the path, you must also change the byte count preceding
it.
Try updating that and the images and thumbnails should show up. Or you
can re-upload all your images. The next version of WP will not store
the absolute path in an array like this. Sorry for the trouble! Hope
this helps!
Ryan Scheuermann
----
Concept 64, Inc. | Phone: 610.349.0703 | Web: www.concept64.com
Karl Wångstedt wrote:
> Hi all
>
> I've come upon a strange problem that I for my life can't seem to
> solve. I've been searching in the WP support forums and google, but
> nothing... So I turn here to see if someone might have a solution.
>
> Yesterday I moved my developing site to my standard domain. It's a WP
> 2.0.2 installation. The developer domain is on the same server and
> just another subdomain. The developer site has the adress
> http://utv5.wangstedt.net and my standard site has
> http://www.wangstedt.net.
>
> Nothing strange about that. I just updated the blog to the new domain
> name.
>
> But when I then got into edit mode I saw that the pictures I've u/l:ed
> from within WP didn't show. I figured the database was not upgraded to
> the new domain everywhere, so I did that manually. (That might be
> something to add to trac?)
>
> Now the pictures showed, but not the thumbs. But the DB was correctly
> update with the search paths, and the thumbs were at the right
> location/folder.
>
> If I u/l a new picture, the thumb is being created correctly and shows.
>
> Anyone know how to solve this so I don't have to u/l all pictures all
> over?
>
> Thanks
> Karl Wångstedt
> ---------------------------------
> W W W . W A N G S T E D T . N E T
>
> Karl Wångstedt 0278-61 12 33
> Stenhuggarvägen 3g 070-578 13 04
> 821 41 BOLLNÄS
> ---------------------------------
> Det här brevet skickades med en Macintosh från Apple.
> Garanterat virusfri med Mac OS X.
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
>
>
More information about the wp-testers
mailing list