Support » Plugin: Convert Post Types » [Plugin: Convert Post Types] Error converting Post Types

Viewing 3 replies - 1 through 3 (of 3 total)
  • I believe I’ve patched it up. Change:

    Line 124 to:
    $q = 'numberposts=-1&post_status=any&post_type='.$_POST['old_post_type'];

    And Line 131 to (Edited 1:49pm):
    $wpdb->update( $wpdb->posts, array( 'post_type' => $_POST['new_post_type']), array( 'ID' => $item->ID, 'post_type' => $_POST['old_post_type']), array( '%s' ), array( '%d', '%s' ) );

    HT to cyberhobo here: http://forum.sillybean.net/forums/topic/fatal-error-since-wp-3-3-upgrade/

    …but my solution is a bit less involved. 🙂

    Unfortunately that patch doesn’t work for me; I still get the same error when converting pages to posts.

    Plugin Author Stephanie Leary

    (@sillybean)

    This bug is fixed in 1.2, which I just posted to Extend. Thanks very much for your patience!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Convert Post Types] Error converting Post Types’ is closed to new replies.