Posted: March 29, 2016 at 12:34 pm
|
We recently had to rebuild our database and reinstall our website. We reloaded all of the wp_esp_* tables after everything was installed and everything seemed perfect. However, new registrations are overwriting previously existing registrations. Can someone help us identify if there is the equivalent of a sequence number somewhere that needs incremented to prevent the collisions between existing and new registrations? Thanks!!! |
Hi Conrad, Could you tell us more about how the database was rebuilt? For example, did you restore a backup of the database using a tool like Duplicator? — |
|
|
We had a full WP database backup using the BackUpWordPress plugin as a single SQL file. We reinstalled WordPress from scratch, reinstalled all plugins including EE 4.8.38.p We made a copy of the SQL file and edited it removing all objects and data for tables that did not have the wp_es_* name format. We used the mysql command line to read in and process the SQL file. All tables included a DROP and CREATE in the SQL like this: DROP TABLE IF EXISTS |
|
Reposting the SQL DDL using code block:
|
Hello, I’ll double-check with a developer but it looks like you may have dropped a custom table for Event Espresso 4 and then created a new one. Could you confirm that you were not trying to merge data from one site to another? That won’t work since information is stored in native WP tables and support information in custom Event Espresso tables. — |
|
|
We were restoring data from the original site back to a newly restored installation of the same website. |
|
One possibility is there may have been a stored value in another WP table that we did not restore relative to the EE installation but we don’t have the insight to know where or what that might have been. |
You are correct, Event Espresso also uses the _posts table to store registration information, specifically for attendees because Event Espresso Attendees are a custom post type. |
|
|
Thanks for the input. We were able to identify that we are missing four previous registrations, have one conflicting (two different registrant names with the same ID) and two new. This was a huge relief to be able to identify the impact, we can manage those manually. |
You’re welcome. |
|
The support post ‘New registrations overwriting existing after database recovery’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.