Maybe you made some mistakes in migrating the database. For such cases, using XML data export/import is recommended.
FAQ > How can I export/import contact form data?
Morning!
I took a dump of the database from the live server, and SCP’d the files over and just updated wp-config to connect to the DB on the new server.
I’ve already tried using the WP export tool on the old site and importing it on the new, but with no results sadly.
I’ll compare the 2 databases. I’m not sure if the find and replace script I ran would affect it, as I was just searching for the old domain and replacing with the staging domain.
Weird..
I’ll look into it and let you know if I strike gold!
Okay so the client decided to re-fill the fields in manually. No problem, all working again.
Until I changed the domain and put the site live. Gone, again.
Any ideas?
How is the info stored in the database, by domain or theme name or something? The only thing which has changed is the domain so I can only assume something is saved against that.
Just looking into it now as the site is live now.
Okay…
So I saved test@me.com in one of the forms (In the “To” field in the mail tab) to see where it saved. I found it saved in the post_content for the CPT. I looked at one of the other contact forms and noticed it was doing the same, but with the info which was previously saved in there:
[your-name] <[your-email]>
sender@site.com
From: [your-name] [your-email]
Subject: Contact us
Submitted from: [webpage]
Name: [your-name]
Job Title: [job-title]
Company: [company]
Address:
[address]
Phone: [phone]
Email: [your-email]
Message Body:
[your-message]
So it appears all the fields are there but not actually being used. The fields in the mail tab appear to be empty (I assume just not setting the value="", and the emails aren’t sending either.
At a bit of a loss now.