The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Post Thumbplugin not working properly after update to 2.6 (8 posts)

  1. Boris
    Posted 8 years ago #


    I'm having problems with the latest alpha Post-Thumb and WP 2.6. This is the warning I was getting:

    Warning: unserialize() expects parameter 1 to be string, array given in /www/htdocs/w006dc1d/travelogues/wp-content/plugins/post-thumb/post-thumb.php on line 83

    I tried switching back to the stable version, but then only my category images were displayed, so I switched back to the latest alpha and even though I had deleted the cached images in the meantime, all images were displayed properly, except the one from my last post (first post after upgrade to WP 2.6). Here the category image was used.

    I had a look around. Here on the forums someone suggested (for another plugin) to just delete the unserialize bit out of source code. I tried that, with the effect that now the post thumb for my last post has been generated and is showing up, but none of the other thumbs are being shown. You can see it here: http://travel-junkie.com
    I then put the unserialize bit in again, but that didn't change anything.

    I asked for support already on the Post Thumb forum, but it seems that Alakhnor is on holiday or something like that.
    I'd really appreciate some help here, cause right now my frontpage is a mess!

  2. Boris
    Posted 8 years ago #

    ok, apparently all i needed to do after getting rid of the unserialize() stuff was save all my posts again. then the thumbs show up again.

  3. af3
    Posted 8 years ago #

    travel-junkie: what exact did you do to fix this?
    I am facing exactly the same error message when updated to wp2.6.

    I re-open (edit) the post and save; but the error remains.

  4. af3
    Posted 8 years ago #

    seems like this is the solution? it works fine so far.
    line 83: change to

    $PostData['img'] = $m->metaContentIMG;
    $PostData['med'] = $m->metaContentMED;
    $PostData['ytb'] = $m->metaContentYTB;

  5. KIntheHouse
    Posted 8 years ago #

    Thanks af3. It worked like a charm for me too in version 2.6! :-)

  6. kjetilgf
    Posted 7 years ago #

    Nice that you point out a solution - but does it still mean that I'll have to re-save all posts? I have about 200, so I'd rather not...

  7. af3
    Posted 7 years ago #

    kje, you can just remove the folder /thumbs/ and it will be regenerated.

  8. af3
    Posted 7 years ago #

    hmm may not be so.. just be safe: dont remove, but rename the folder..

Topic Closed

This topic has been closed to new replies.

About this Topic