closemarketing
Member
Posted 1 year ago #
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/
Cliff Seal
Member
Posted 1 year ago #
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.
This bug is fixed in 1.2, which I just posted to Extend. Thanks very much for your patience!