WordPress Importer
Importer fails for post_id's over PHP_INT_MAX of 2147483647 (2 posts)

  1. mynameiswilson
    Posted 5 years ago #

    I generated a WXR file using the Tumblr2Wordpress tool from Ben Ward (http://tumblr2wordpress.benapps.net/), and noticed that many of my recent posts were not imported.

    The post_id's that that tool exports is Tumblr's unique numeric post ID, which as of mid-December eclipsed 2147483647, which is the 32-bit INTEGER limit.

    The WordPress Importer on wordpress-importer.php line 434:

    $post_ID = (int) $this->get_tag( $post, 'wp:post_id' );

    It smashes whatever is specified as the post_id into an int. This causes a lot of nasty things to happen, specifically any further imports fail...

    The wp_posts ID field is a bigint(20), which is much, much larger than PHP's (int), so that isn't the problem - at least at Tumblr's current post count ;)

  2. Jon Cave
    WordPress Dev
    Plugin Author

    Posted 5 years ago #

    Thanks for the report.

    There is already a ticket about this on Trac http://core.trac.wordpress.org/ticket/16445.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic