Fatal error during conversion

Plugin SupportForumsConvert Post TypesFatal error during conversion

Tagged: 

This topic has 4 voices, contains 3 replies, and was last updated by  Stephanie 8 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
December 19, 2011 at 10:02 pm #586

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

January 3, 2012 at 7:53 am #587

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

February 23, 2012 at 12:48 pm #609

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.
April 11, 2012 at 11:00 pm #638

Stephanie

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

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.