Title: [Plugin: Convert Post Types] Error converting Post Types
Last modified: August 20, 2016

---

# [Plugin: Convert Post Types] Error converting Post Types

 *  [closemarketing](https://wordpress.org/support/users/closemarketing/)
 * (@closemarketing)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-convert-post-types-error-converting-post-types/)
 * I get this error…
    Any idea?
 * Fatal error: Cannot redeclare bulk_convert_posts_add_pages() (previously declared
   in /wp-content/plugins/convert-post-types/convert-post-types.php:15) in /wp-content/
   plugins/convert-post-types/convert-post-types.php on line 17
 * [http://wordpress.org/extend/plugins/convert-post-types/](http://wordpress.org/extend/plugins/convert-post-types/)

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

 *  [Cliff Seal](https://wordpress.org/support/users/cliffseal/)
 * (@cliffseal)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-convert-post-types-error-converting-post-types/#post-2560189)
 * 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/](http://forum.sillybean.net/forums/topic/fatal-error-since-wp-3-3-upgrade/)
 * …but my solution is a bit less involved. 🙂
 *  [justmattb](https://wordpress.org/support/users/mwbarker/)
 * (@mwbarker)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-convert-post-types-error-converting-post-types/#post-2560200)
 * Unfortunately that patch doesn’t work for me; I still get the same error when
   converting pages to posts.
 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-convert-post-types-error-converting-post-types/#post-2560225)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/convert-post-types.svg)
 * [Convert Post Types](https://wordpress.org/plugins/convert-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/convert-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/convert-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/convert-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/convert-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/convert-post-types/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-convert-post-types-error-converting-post-types/#post-2560225)
 * Status: not resolved