Skip to content

Conversation

rorystreet
Copy link

I discovered when migrating from DasBlog that it uses GUID's for the POSTID. When WordPress imports the WRX file it attempts to convert these GUID's to integers. It does this in an unusual way which ends up with integers greater than 2147483647. This is supported in MySQL but in WordPress when rendering a post it converts the POSTID to an integer. PHP when it encounters a number greater than 2147483647 will convert that number to 2147483647. So when WordPress renders a post with an id of say 2147483650 it will end up rendering the post with an id of 2147483647 instead and it then appears your blog is filled with duplicates.

To fix this I have added an optional parameter called /BlogPostIdSeed which allows you to add an identity seed the converter will increment and use instead of the original postid.

rorystreet and others added 2 commits February 3, 2023 08:08
…blog ML source uses GUIDs for the postid. Wordpress Importer ends up converting these to high value ints which eventually go past the MaxInt value 2147483647 and break word press.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant