Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sdevilcry

    (@sdevilcry)

    For people having the same problem after having modified the serialized meta_value, use this to fix the length of the string :

    global $wpdb;
          $tab = $wpdb->get_results('SELECT post_id, meta_value
              FROM wp_postmeta
              where meta_key = "_podPressMedia"');
          foreach ($tab as $num => $post)
          {
            $new_value = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'",
              $post->meta_value);
            $sql = 'UPDATE wp_vince_postmeta
                    SET meta_value = \''.$new_value.'\'
                    WHERE post_id = '.$post->post_id;
            $wpdb->query($sql);
    }

    Best regards 🙂

    Thread Starter sdevilcry

    (@sdevilcry)

    Ok I thinkf I found what’s going on 😀

    I broke the serialized content replacing the last domain name to my new one but the length string change and I didn’t report the new size (replace was made with SQL query)

    I think I will fix it 🙂

    By the way, Is there any way to forbidde to podpress to insert enclosure link using in the post ? I have had to modify the source code 🙁

    Thanks in advance.

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)