ID’s out of sync after migration
-
Hi all!
I have been working within the Woo Commerce environment for years but recently (about 3 months ago) I was moving a website to a new host for one of my clients and all was going well until now a couple of months later when random products were starting to be added to customers carts.
At first, I thought this could be a caching issue so I spent hours going through every possible setting, enabling and disabling but would still get an email from my client saying it had happened again. This made me very confident that caching wasn’t the issue and I had to look somewhere else for an explanation.
After a solid amount of research, I came across a GitHub forum from years gone by about the same issue and it was due to the wp_posts and wc_order table ID’s being out of sync and surely enough when I went into the database they have gone out of sync by at least a thousand…
I looked back at the copy on my server and the ID’s were fine so I can only presume it happened during the migration process but it has been months later and my client wants to keep all her orders on the website as that is how she handles tax calculations, income calculations etc.
So my question after my little story is does anyone have a possible solution? Or maybe someone thinks there is another cause?
I am very keen to get this fixed and can supply screenshots if it helps!
Thank you, the WP community!
- The topic ‘ID’s out of sync after migration’ is closed to new replies.