 sasi
|
Hello Stephanie,
I am trying to convert posts to photos and upon trying to convert, I get the following message ”
Fatal error: Cannot redeclare bulk_convert_posts_add_pages() (previously declared in /home/unsunbuc/public_html/wp-content/plugins/convert-post-types/convert-post-types.php:15) in /home/unsunbuc/public_html/wp-content/plugins/convert-post-types/convert-post-types.php on line 17″
On the post to photo conversion, I am limiting the post based on the category and tried with/without taxonomy terms – error message is same in both the cases.
Any thoughts on what I could be missing?
Thanks in advance,
Sasi
|
 markjames
|
I don’t think this is an error with your post types – I think it is a general error since 3.3 upgrade
Try it on an older installation – I’m posting a new thread with regard a general issue with converting ANY post types since wp 3.3 upgrade
|
 cliffseal
|
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:
$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. :)
-
This reply was modified 56 days ago by
cliffseal.
|
 Stephanie
|
This bug is fixed in 1.2, which I just posted to Extend. Thanks very much for your patience, everyone!
|